diff --git a/components/weapon/WeaponGrid/index.tsx b/components/weapon/WeaponGrid/index.tsx index 7ed5adb4..e0e3c433 100644 --- a/components/weapon/WeaponGrid/index.tsx +++ b/components/weapon/WeaponGrid/index.tsx @@ -11,6 +11,8 @@ import classNames from 'classnames' import Alert from '~components/common/Alert' import WeaponUnit from '~components/weapon/WeaponUnit' import ExtraWeaponsGrid from '~components/extra/ExtraWeaponsGrid' +import ExtraContainer from '~components/extra/ExtraContainer' +import GuidebooksGrid from '~components/extra/GuidebooksGrid' import WeaponConflictModal from '~components/weapon/WeaponConflictModal' import api from '~utils/api' @@ -25,8 +27,11 @@ interface Props { new: boolean editable: boolean weapons?: GridWeapon[] + guidebooks?: GuidebookList createParty: (details: DetailsObject) => Promise pushHistory?: (path: string) => void + updateExtra: (enabled: boolean) => void + updateGuidebook: (book: Guidebook, position: number) => void } const WeaponGrid = (props: Props) => { @@ -365,6 +370,13 @@ const WeaponGrid = (props: Props) => { updateObject={receiveWeaponFromSearch} updateUncap={initiateUncapUpdate} /> + ) @@ -418,9 +430,7 @@ const WeaponGrid = (props: Props) => { - {(() => { - return party.extra ? extraGridElement : '' - })()} + {extraElement} ) }