Removed unused and redundant code

This commit is contained in:
Justin Edmund 2023-01-14 12:22:15 -08:00
parent 4d07eed3f4
commit 21f5ab8825

View file

@ -20,6 +20,7 @@ interface Props {
} }
const PartySegmentedControl = (props: Props) => { const PartySegmentedControl = (props: Props) => {
// Set up translations
const { t } = useTranslation('common') const { t } = useTranslation('common')
const { party, grid } = useSnapshot(appState) const { party, grid } = useSnapshot(appState)
@ -33,22 +34,16 @@ const PartySegmentedControl = (props: Props) => {
switch (element) { switch (element) {
case 1: case 1:
return 'wind' return 'wind'
break
case 2: case 2:
return 'fire' return 'fire'
break
case 3: case 3:
return 'water' return 'water'
break
case 4: case 4:
return 'earth' return 'earth'
break
case 5: case 5:
return 'dark' return 'dark'
break
case 6: case 6:
return 'light' return 'light'
break
} }
} }
@ -72,13 +67,6 @@ const PartySegmentedControl = (props: Props) => {
})} })}
> >
<SegmentedControl elementClass={getElement()}> <SegmentedControl elementClass={getElement()}>
{/* <Segment
groupName="grid"
name="class"
selected={props.selectedTab === GridType.Class}
onClick={props.onClick}
>Class</Segment> */}
<Segment <Segment
groupName="grid" groupName="grid"
name="characters" name="characters"