From 194b1c5ff39aa7faa30ea7355a46374dd83499cf Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 4 Feb 2022 18:21:37 -0800 Subject: [PATCH] Remove GridType definitions in favor of the shared one --- components/ExtraSummons/index.tsx | 8 -------- components/ExtraWeapons/index.tsx | 8 -------- components/Party/index.tsx | 10 +--------- components/PartySegmentedControl/index.tsx | 8 +------- 4 files changed, 2 insertions(+), 32 deletions(-) diff --git a/components/ExtraSummons/index.tsx b/components/ExtraSummons/index.tsx index 80d21a4b..14b1c4c3 100644 --- a/components/ExtraSummons/index.tsx +++ b/components/ExtraSummons/index.tsx @@ -2,14 +2,6 @@ import React from 'react' import SummonUnit from '~components/SummonUnit' import './index.scss' -// GridType -export enum GridType { - Class, - Character, - Weapon, - Summon -} - // Props interface Props { grid: GridArray diff --git a/components/ExtraWeapons/index.tsx b/components/ExtraWeapons/index.tsx index 71fcda5c..fbce69c5 100644 --- a/components/ExtraWeapons/index.tsx +++ b/components/ExtraWeapons/index.tsx @@ -3,14 +3,6 @@ import WeaponUnit from '~components/WeaponUnit' import './index.scss' -// GridType -export enum GridType { - Class, - Character, - Weapon, - Summon -} - // Props interface Props { grid: GridArray diff --git a/components/Party/index.tsx b/components/Party/index.tsx index fa20c988..5d8375bc 100644 --- a/components/Party/index.tsx +++ b/components/Party/index.tsx @@ -9,18 +9,10 @@ import SummonGrid from '~components/SummonGrid' import CharacterGrid from '~components/CharacterGrid' import api from '~utils/api' -import { TeamElement } from '~utils/enums' +import { GridType, TeamElement } from '~utils/enums' import './index.scss' -// GridType -enum GridType { - Class, - Character, - Weapon, - Summon -} - // Props interface Props { slug?: string diff --git a/components/PartySegmentedControl/index.tsx b/components/PartySegmentedControl/index.tsx index 3d30e8f4..427244d0 100644 --- a/components/PartySegmentedControl/index.tsx +++ b/components/PartySegmentedControl/index.tsx @@ -7,13 +7,7 @@ import SegmentedControl from '~components/SegmentedControl' import Segment from '~components/Segment' import ToggleSwitch from '~components/ToggleSwitch' -// GridType -export enum GridType { - Class, - Character, - Weapon, - Summon -} +import { GridType } from '~utils/enums' interface Props { selectedTab: GridType