refactor: move eslint disable rule to a better place

main
Josue 4 years ago committed by Tsu-ba-me
parent 9cdb9fc0fa
commit 162831ebf2
  1. 3
      striker-ui/components/AnvilDrawer.tsx
  2. 3
      striker-ui/components/Header.tsx

@ -51,7 +51,8 @@ const AnvilDrawer = ({ open, setOpen }: DrawerProps): JSX.Element => {
<img <img
alt="" alt=""
key="icon" key="icon"
src={icon.image} // eslint-disable-next-line react/jsx-props-no-spreading src={icon.image}
// eslint-disable-next-line react/jsx-props-no-spreading
{...ICON_SIZE} {...ICON_SIZE}
/> />
</Box> </Box>

@ -60,7 +60,8 @@ const Header = (): JSX.Element => {
<img <img
alt="" alt=""
key="icon" key="icon"
src={icon.image} // eslint-disable-next-line react/jsx-props-no-spreading src={icon.image}
// eslint-disable-next-line react/jsx-props-no-spreading
{...ICON_SIZE} {...ICON_SIZE}
/> />
), ),

Loading…
Cancel
Save