From cf68c9812c78fa6d634e50f28ff19b79165d97e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 29 Jun 2024 11:49:55 -0500 Subject: [PATCH] feat: move shell selector to firepower header --- src/app/tools/compare/page.tsx | 100 ++++++++++++++++++--------------- 1 file changed, 56 insertions(+), 44 deletions(-) diff --git a/src/app/tools/compare/page.tsx b/src/app/tools/compare/page.tsx index 3e511e3a0..df9b80141 100644 --- a/src/app/tools/compare/page.tsx +++ b/src/app/tools/compare/page.tsx @@ -1160,49 +1160,6 @@ export default function Page() { - - - {gun.shells.map((thisShell, shellIndex) => ( - { - mutateCompareTemporary((draft) => { - draft.members[index].shell = thisShell; - }); - }} - > - {thisShell.name} - - ))} - ); @@ -1211,7 +1168,62 @@ export default function Page() { - Firepower + + + + + Firepower + + + + {members.map(({ gun, shell, key }, index) => ( + + + + {gun.shells.map((thisShell, shellIndex) => ( + { + mutateCompareTemporary((draft) => { + draft.members[index].shell = thisShell; + }); + }} + > + {thisShell.name} + + ))} + + + + ))} + +