Skip to content

Commit

Permalink
Remove badRoll from settings item preview
Browse files Browse the repository at this point in the history
  • Loading branch information
FlaminSarge committed Aug 5, 2024
1 parent db6f0d7 commit 83f683e
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions src/app/settings/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,10 @@ export default function SettingsPage() {
const exampleWeapon = allItems.find(
(i) => i.bucket.sort === 'Weapons' && !i.isExotic && !i.masterwork && !i.deepsightInfo,
);
const exampleWeaponBad = allItems.find(
(i) =>
i !== exampleWeapon &&
i.bucket.sort === 'Weapons' &&
!i.isExotic &&
!i.masterwork &&
!i.deepsightInfo,
);
// Include a masterworked item because they look different in some themes
const exampleWeaponMasterworked = allItems.find(
(i) => i.bucket.sort === 'Weapons' && !i.isExotic && i.masterwork && !i.deepsightInfo,
);
const exampleWeaponMasterworkedBad = allItems.find(
(i) =>
i !== exampleWeaponMasterworked &&
i.bucket.sort === 'Weapons' &&
!i.isExotic &&
i.masterwork &&
!i.deepsightInfo,
);
const exampleArmor = allItems.find((i) => i.bucket.sort === 'Armor' && !i.isExotic);
const exampleArchivedArmor = allItems.find(
(i) => i !== exampleArmor && i.bucket.sort === 'Armor' && !i.isExotic,
Expand All @@ -98,11 +82,6 @@ export default function SettingsPage() {
notes: undefined,
isUndesirable: false,
};
const badRoll = {
wishListPerks: new Set<number>(),
notes: undefined,
isUndesirable: true,
};

const onCheckChange = (checked: boolean, name: keyof Settings) => {
if (name.length === 0) {
Expand Down Expand Up @@ -304,15 +283,6 @@ export default function SettingsPage() {
autoLockTagged={settings.autoLockTagged}
/>
)}
{exampleWeaponBad && (
<InventoryItem
item={exampleWeaponBad}
isNew={settings.showNewItems}
tag="infuse"
wishlistRoll={badRoll}
autoLockTagged={settings.autoLockTagged}
/>
)}
{exampleWeaponMasterworked && (
<InventoryItem
item={exampleWeaponMasterworked}
Expand All @@ -322,15 +292,6 @@ export default function SettingsPage() {
autoLockTagged={settings.autoLockTagged}
/>
)}
{exampleWeaponMasterworkedBad && (
<InventoryItem
item={exampleWeaponMasterworkedBad}
isNew={settings.showNewItems}
tag="junk"
wishlistRoll={badRoll}
autoLockTagged={settings.autoLockTagged}
/>
)}
{exampleArmor && (
<InventoryItem
item={exampleArmor}
Expand Down

0 comments on commit 83f683e

Please sign in to comment.