From 6f55967933cdb186f2ee461e17c7dd94a8336a55 Mon Sep 17 00:00:00 2001 From: Thammarong Glomjai Date: Fri, 15 Nov 2024 04:27:39 +0700 Subject: [PATCH] refector: fix code to complie ts rules --- src/components/Layout/Header/Header.tsx | 7 +- .../elements/Container/Container.tsx | 6 +- src/pages/Swap.tsx | 105 ++++++++---------- src/pages/Transaction.tsx | 16 +-- 4 files changed, 59 insertions(+), 75 deletions(-) diff --git a/src/components/Layout/Header/Header.tsx b/src/components/Layout/Header/Header.tsx index 216b3ec..866069d 100644 --- a/src/components/Layout/Header/Header.tsx +++ b/src/components/Layout/Header/Header.tsx @@ -1,12 +1,9 @@ -/* eslint-disable @typescript-eslint/no-unused-vars */ -/* eslint-disable @typescript-eslint/no-explicit-any */ - import Menu from './Menu' // import styles from "./Header.module.css"; import { Logo } from './Logo' type Props = { - rightWidget: any + rightWidget: JSX.Element menuItems: { label: string; href: string; testId: string }[] } @@ -14,7 +11,7 @@ export const Header = ({ rightWidget, menuItems }: Props) => { return (