Cleanup Grid components
Unused includes and props
This commit is contained in:
parent
d93b6e5bdf
commit
0b1b72c27d
3 changed files with 2 additions and 12 deletions
|
|
@ -64,7 +64,6 @@ const Party = (props: Props) => {
|
||||||
editable={props.editable}
|
editable={props.editable}
|
||||||
exists={props.exists}
|
exists={props.exists}
|
||||||
onSelect={itemSelected}
|
onSelect={itemSelected}
|
||||||
pushHistory={props.pushHistory}
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -77,7 +76,6 @@ const Party = (props: Props) => {
|
||||||
editable={props.editable}
|
editable={props.editable}
|
||||||
exists={props.exists}
|
exists={props.exists}
|
||||||
onSelect={itemSelected}
|
onSelect={itemSelected}
|
||||||
pushHistory={props.pushHistory}
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
import React, { useEffect, useState } from 'react'
|
import React from 'react'
|
||||||
import { useCookies } from 'react-cookie'
|
|
||||||
import api from '~utils/api'
|
|
||||||
|
|
||||||
import SummonUnit from '~components/SummonUnit'
|
import SummonUnit from '~components/SummonUnit'
|
||||||
|
|
||||||
import './index.css'
|
import './index.css'
|
||||||
|
|
@ -25,7 +22,6 @@ interface Props {
|
||||||
exists: boolean
|
exists: boolean
|
||||||
found?: boolean
|
found?: boolean
|
||||||
onSelect: (type: GridType, summon: Summon, position: number) => void
|
onSelect: (type: GridType, summon: Summon, position: number) => void
|
||||||
pushHistory?: (path: string) => void
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const SummonGrid = (props: Props) => {
|
const SummonGrid = (props: Props) => {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
import React, { useEffect, useState } from 'react'
|
import React from 'react'
|
||||||
import { useCookies } from 'react-cookie'
|
|
||||||
import api from '~utils/api'
|
|
||||||
|
|
||||||
import WeaponUnit from '~components/WeaponUnit'
|
import WeaponUnit from '~components/WeaponUnit'
|
||||||
|
|
||||||
import './index.css'
|
import './index.css'
|
||||||
|
|
@ -24,7 +21,6 @@ interface Props {
|
||||||
exists: boolean
|
exists: boolean
|
||||||
found?: boolean
|
found?: boolean
|
||||||
onSelect: (type: GridType, weapon: Weapon, position: number) => void
|
onSelect: (type: GridType, weapon: Weapon, position: number) => void
|
||||||
pushHistory?: (path: string) => void
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const WeaponGrid = (props: Props) => {
|
const WeaponGrid = (props: Props) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue