Skip to content

Commit

Permalink
fix(ui/settings/Developer): replace references to IDs in Asset Browse…
Browse files Browse the repository at this point in the history
…r with indexes

Apparently they're the same thing. Someone who marked them as deprecated forgot to put a note, I suppose.
  • Loading branch information
PalmDevs authored Sep 15, 2024
1 parent e232a72 commit 333a391
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/ui/settings/pages/Developer/AssetDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ export default function AssetDisplay({ asset }: AssetDisplayProps) {
return (
<TableRow
label={asset.name}
subLabel={`ID: ${asset.id}`}
icon={<Image source={asset.id} style={{ width: 32, height: 32 }} />}
subLabel={`Index: ${asset.index}`}
icon={<Image source={asset.index} style={{ width: 32, height: 32 }} />}
onPress={() => {
openAlert("revenge-asset-display-details", <AlertModal
title={asset.name}
content={`ID: ${asset.id}\nIndex: ${asset.index}\nModule ID: ${asset.moduleId}`}
extraContent={<Image resizeMode="contain" source={asset.id} style={{ flex: 1, width: 'auto', height: 192 }} />}
content={`Index: ${asset.index}\nModule ID: ${asset.moduleId}`}
extraContent={<Image resizeMode="contain" source={asset.index} style={{ flex: 1, width: 'auto', height: 192 }} />}
actions={
<Stack>
<AlertActionButton text="Copy asset name" variant="primary" onPress={() => copyToClipboard(asset.name)} />
<AlertActionButton text="Copy asset ID" variant="secondary" onPress={() => copyToClipboard(asset.id.toString())} />
<AlertActionButton text="Copy asset index" variant="secondary" onPress={() => copyToClipboard(asset.index.toString())} />
</Stack>
}
/>);
Expand Down

0 comments on commit 333a391

Please sign in to comment.