From d32824521b87b8df7ff5941b0d6b5ca097b894ba Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 3 Dec 2022 19:21:44 -0800 Subject: [PATCH] Fix lint error: Forgot SearchableObject --- components/ExtraWeapons/index.tsx | 70 +++++++++++++++---------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/components/ExtraWeapons/index.tsx b/components/ExtraWeapons/index.tsx index 235bb8f3..f9ed14a0 100644 --- a/components/ExtraWeapons/index.tsx +++ b/components/ExtraWeapons/index.tsx @@ -1,46 +1,46 @@ -import React from 'react' -import { useTranslation } from 'next-i18next' -import WeaponUnit from '~components/WeaponUnit' +import React from "react" +import { useTranslation } from "next-i18next" +import WeaponUnit from "~components/WeaponUnit" -import './index.scss' +import type { SearchableObject } from "~types" + +import "./index.scss" // Props interface Props { - grid: GridArray - editable: boolean - found?: boolean - offset: number - updateObject: (object: Character | Weapon | Summon, position: number) => void - updateUncap: (id: string, position: number, uncap: number) => void + grid: GridArray + editable: boolean + found?: boolean + offset: number + updateObject: (object: SearchableObject, position: number) => void + updateUncap: (id: string, position: number, uncap: number) => void } const ExtraWeapons = (props: Props) => { - const numWeapons: number = 3 - const { t } = useTranslation('common') + const numWeapons: number = 3 + const { t } = useTranslation("common") - return ( -
- {t('extra_weapons')} -
    - { - Array.from(Array(numWeapons)).map((x, i) => { - return ( -
  • - -
  • - ) - }) - } -
-
- ) + return ( +
+ {t("extra_weapons")} +
    + {Array.from(Array(numWeapons)).map((x, i) => { + return ( +
  • + +
  • + ) + })} +
+
+ ) } export default ExtraWeapons