Skip to content

Commit

Permalink
Remove next Image usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Haaxor1689 committed Oct 25, 2024
1 parent 41db9af commit 12b9d00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/styled/SpellIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @next/next/no-img-element */
import cls from 'classnames';
import { forwardRef } from 'react';
import Image from 'next/image';

import { getIconPath } from '~/utils';

Expand Down Expand Up @@ -56,22 +56,22 @@ const SpellIcon = forwardRef<HTMLButtonElement, Props>(
{...props}
>
{showDefault || icon ? (
<Image
<img
src={getIconPath(icon ?? undefined)}
alt={!icon ? 'empty' : icon}
width={size}
height={size}
/>
) : (
<Image
<img
src="/icon_frame.png"
alt="frame"
width={size}
height={size}
className={cls('absolute inset-0', frameClass)}
/>
)}
<Image
<img
className={cls('absolute inset-0 p-[5%]', {
'group-hover:block group-focus:block': isClickable,
'hidden': !selected,
Expand All @@ -84,7 +84,7 @@ const SpellIcon = forwardRef<HTMLButtonElement, Props>(
/>

{highlighted && (
<Image
<img
className={cls('absolute inset-0 scale-125 ')}
src="/icon_hover.png"
alt="hover"
Expand Down

0 comments on commit 12b9d00

Please sign in to comment.