From 0b1b72c27de1048a265734c499fc69bec7b10b7b Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 19 Oct 2020 00:44:19 -0700 Subject: [PATCH] Cleanup Grid components Unused includes and props --- src/components/Party/index.tsx | 2 -- src/components/SummonGrid/index.tsx | 6 +----- src/components/WeaponGrid/index.tsx | 6 +----- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/components/Party/index.tsx b/src/components/Party/index.tsx index 5e004dc1..9eeb1d73 100644 --- a/src/components/Party/index.tsx +++ b/src/components/Party/index.tsx @@ -64,7 +64,6 @@ const Party = (props: Props) => { editable={props.editable} exists={props.exists} onSelect={itemSelected} - pushHistory={props.pushHistory} /> ) @@ -77,7 +76,6 @@ const Party = (props: Props) => { editable={props.editable} exists={props.exists} onSelect={itemSelected} - pushHistory={props.pushHistory} /> ) diff --git a/src/components/SummonGrid/index.tsx b/src/components/SummonGrid/index.tsx index 269007f7..d9b4aabd 100644 --- a/src/components/SummonGrid/index.tsx +++ b/src/components/SummonGrid/index.tsx @@ -1,7 +1,4 @@ -import React, { useEffect, useState } from 'react' -import { useCookies } from 'react-cookie' -import api from '~utils/api' - +import React from 'react' import SummonUnit from '~components/SummonUnit' import './index.css' @@ -25,7 +22,6 @@ interface Props { exists: boolean found?: boolean onSelect: (type: GridType, summon: Summon, position: number) => void - pushHistory?: (path: string) => void } const SummonGrid = (props: Props) => { diff --git a/src/components/WeaponGrid/index.tsx b/src/components/WeaponGrid/index.tsx index f972a1c9..c9fe3e0f 100644 --- a/src/components/WeaponGrid/index.tsx +++ b/src/components/WeaponGrid/index.tsx @@ -1,7 +1,4 @@ -import React, { useEffect, useState } from 'react' -import { useCookies } from 'react-cookie' -import api from '~utils/api' - +import React from 'react' import WeaponUnit from '~components/WeaponUnit' import './index.css' @@ -24,7 +21,6 @@ interface Props { exists: boolean found?: boolean onSelect: (type: GridType, weapon: Weapon, position: number) => void - pushHistory?: (path: string) => void } const WeaponGrid = (props: Props) => {