Remove GridType definitions in favor of the shared one
This commit is contained in:
parent
88b05c6de8
commit
194b1c5ff3
4 changed files with 2 additions and 32 deletions
|
|
@ -2,14 +2,6 @@ import React from 'react'
|
||||||
import SummonUnit from '~components/SummonUnit'
|
import SummonUnit from '~components/SummonUnit'
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
|
|
||||||
// GridType
|
|
||||||
export enum GridType {
|
|
||||||
Class,
|
|
||||||
Character,
|
|
||||||
Weapon,
|
|
||||||
Summon
|
|
||||||
}
|
|
||||||
|
|
||||||
// Props
|
// Props
|
||||||
interface Props {
|
interface Props {
|
||||||
grid: GridArray<GridSummon>
|
grid: GridArray<GridSummon>
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,6 @@ import WeaponUnit from '~components/WeaponUnit'
|
||||||
|
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
|
|
||||||
// GridType
|
|
||||||
export enum GridType {
|
|
||||||
Class,
|
|
||||||
Character,
|
|
||||||
Weapon,
|
|
||||||
Summon
|
|
||||||
}
|
|
||||||
|
|
||||||
// Props
|
// Props
|
||||||
interface Props {
|
interface Props {
|
||||||
grid: GridArray<GridWeapon>
|
grid: GridArray<GridWeapon>
|
||||||
|
|
|
||||||
|
|
@ -9,18 +9,10 @@ import SummonGrid from '~components/SummonGrid'
|
||||||
import CharacterGrid from '~components/CharacterGrid'
|
import CharacterGrid from '~components/CharacterGrid'
|
||||||
|
|
||||||
import api from '~utils/api'
|
import api from '~utils/api'
|
||||||
import { TeamElement } from '~utils/enums'
|
import { GridType, TeamElement } from '~utils/enums'
|
||||||
|
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
|
|
||||||
// GridType
|
|
||||||
enum GridType {
|
|
||||||
Class,
|
|
||||||
Character,
|
|
||||||
Weapon,
|
|
||||||
Summon
|
|
||||||
}
|
|
||||||
|
|
||||||
// Props
|
// Props
|
||||||
interface Props {
|
interface Props {
|
||||||
slug?: string
|
slug?: string
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,7 @@ import SegmentedControl from '~components/SegmentedControl'
|
||||||
import Segment from '~components/Segment'
|
import Segment from '~components/Segment'
|
||||||
import ToggleSwitch from '~components/ToggleSwitch'
|
import ToggleSwitch from '~components/ToggleSwitch'
|
||||||
|
|
||||||
// GridType
|
import { GridType } from '~utils/enums'
|
||||||
export enum GridType {
|
|
||||||
Class,
|
|
||||||
Character,
|
|
||||||
Weapon,
|
|
||||||
Summon
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
selectedTab: GridType
|
selectedTab: GridType
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue