diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index 7d9b808..079c72b 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -1,6 +1,6 @@ +/* eslint-disable @next/next/no-img-element */ import React from "react"; import { useRouter } from "next/router"; -import Image from "next/image"; import { formatRelative } from "date-fns"; import arrow from "../public/img/arrow.svg"; @@ -90,7 +90,7 @@ const Sidebar: React.FC = ({

@@ -111,7 +111,7 @@ const Sidebar: React.FC = ({
{!Number.isNaN(modId) && renderModData(modId)} @@ -128,7 +128,7 @@ const Sidebar: React.FC = ({
{renderPluginData( @@ -173,7 +173,7 @@ const Sidebar: React.FC = ({ onClick={() => setOpen(true)} title="Show sidebar" > - show + show ) : ( )} {renderOpenSidebar()} diff --git a/styles/Sidebar.module.css b/styles/Sidebar.module.css index 5e277f9..80c8069 100644 --- a/styles/Sidebar.module.css +++ b/styles/Sidebar.module.css @@ -69,7 +69,7 @@ border-right: 2px solid #222222; } -.hide span { +.hide img { transform: rotate(180deg); } @@ -85,7 +85,7 @@ border-left: 2px solid #222222; } - .hide span { + .hide img { transform: rotate(90deg); } } @@ -112,7 +112,7 @@ border-right: 2px solid #222222; } -.open span { +.open img { transform: rotate(0deg); } @@ -129,7 +129,7 @@ border-left: 2px solid #222222; } - .open span { + .open img { transform: rotate(270deg); } }