feat: rename core armor to primary armor

This commit is contained in:
TrèsAbhi committed 2024-07-29 20:46:57 -05:00
1 parent b1685bcc12
commit 3889c0f75d
13 files changed
+57 -50

No files matched your search

@@ -15,8 +15,8 @@ export function Thicknesses({ thicknessRange }: ThicknessesProps) {
const showSpacedArmor = TankopediaPersistent.use(
(state) => state.model.visual.showSpacedArmor,
);
const showCoreArmor = TankopediaPersistent.use(
(state) => state.model.visual.showCoreArmor,
const showPrimaryArmor = TankopediaPersistent.use(
(state) => state.model.visual.showPrimaryArmor,
);
const mutateTankopediaPersistent = TankopediaPersistent.useMutation();
const mutateTankopediaEphemeral = TankopediaEphemeral.useMutation();
@@ -35,11 +35,11 @@ export function Thicknesses({ thicknessRange }: ThicknessesProps) {
<Flex
height="64px"
gap="2"
style={{ opacity: showCoreArmor ? 1 : 0.5, cursor: 'pointer' }}
style={{ opacity: showPrimaryArmor ? 1 : 0.5, cursor: 'pointer' }}
onClick={() => {
mutateTankopediaPersistent((draft) => {
draft.model.visual.showCoreArmor =
!draft.model.visual.showCoreArmor;
draft.model.visual.showPrimaryArmor =
!draft.model.visual.showPrimaryArmor;
});
mutateTankopediaEphemeral((draft) => {
draft.highlightArmor = undefined;
@@ -51,8 +51,8 @@ export function Thicknesses({ thicknessRange }: ThicknessesProps) {
{thicknessRange.quartile.toFixed(0)}
</Text>
<Flex gap="1">
{showCoreArmor ? <EyeOpenIcon /> : <EyeClosedIcon />}
<Text size="1">Core</Text>
{showPrimaryArmor ? <EyeOpenIcon /> : <EyeClosedIcon />}
<Text size="1">Primary</Text>
</Flex>
<Text color="gray" size="1">
0