fix(ui/settings/Developer): replace references to IDs in Asset Browser with indexes

Apparently they're the same thing. Someone who marked them as deprecated forgot to put a note, I suppose.
This commit is contained in:
Palm 2024-09-16 03:07:45 +07:00 • committed by GitHub
parent e232a72429
commit 333a3919bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>
}
/>);