Fix lint error: Forgot SearchableObject
This commit is contained in:
parent
32e3bbdab4
commit
d32824521b
1 changed files with 35 additions and 35 deletions
|
|
@ -1,8 +1,10 @@
|
|||
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 {
|
||||
|
|
@ -10,20 +12,19 @@ interface Props {
|
|||
editable: boolean
|
||||
found?: boolean
|
||||
offset: number
|
||||
updateObject: (object: Character | Weapon | Summon, position: number) => void
|
||||
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 { t } = useTranslation("common")
|
||||
|
||||
return (
|
||||
<div id="ExtraGrid">
|
||||
<span>{t('extra_weapons')}</span>
|
||||
<span>{t("extra_weapons")}</span>
|
||||
<ul className="grid_weapons">
|
||||
{
|
||||
Array.from(Array(numWeapons)).map((x, i) => {
|
||||
{Array.from(Array(numWeapons)).map((x, i) => {
|
||||
return (
|
||||
<li key={`grid_unit_${i}`}>
|
||||
<WeaponUnit
|
||||
|
|
@ -36,8 +37,7 @@ const ExtraWeapons = (props: Props) => {
|
|||
/>
|
||||
</li>
|
||||
)
|
||||
})
|
||||
}
|
||||
})}
|
||||
</ul>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue