Skip to content

Commit 61b3b40

Browse files
Copilot0xrinegade
andcommitted
Complete react-scripts upgrade - fix ESLint warnings and finalize build
Co-authored-by: 0xrinegade <[email protected]>
1 parent 9767da1 commit 61b3b40

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

src/components/Navbar/Dropdown.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import {
3-
NavLink,
43
DropdownWrap,
54
DropdownContent,
65
DropdownInner,
@@ -18,9 +17,9 @@ export const DropDown: React.FC<DropdownProps> = (props) => {
1817
const { text, children, hide, isActive } = props;
1918
return (
2019
<DropdownWrap hide={hide}>
21-
<a className={isActive ? 'selected' : ''}>
20+
<button className={isActive ? 'selected' : ''} style={{ background: 'none', border: 'none', cursor: 'pointer' }}>
2221
{text}
23-
</a>
22+
</button>
2423
<DropdownContent>
2524
<DropdownInner>{children}</DropdownInner>
2625
</DropdownContent>

src/components/SearchBar/SearchBar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react';
22
import { useTranslation } from 'react-i18next';
33
import styled from 'styled-components';
44
import { useNavigate } from 'react-router-dom';
5-
import { Search, Close, ArrowUpward, ArrowDownward } from '@mui/icons-material';
5+
import { Search } from '@mui/icons-material';
66

77
const SearchOverlay = styled.div<{ open: boolean }>`
88
position: fixed;
@@ -113,7 +113,7 @@ const ShortcutKey = styled.span`
113113
font-family: monospace;
114114
`;
115115

116-
interface SearchItem {
116+
interface SearchItemData {
117117
id: string;
118118
title: string;
119119
description: string;
@@ -134,7 +134,7 @@ export const SearchBar: React.FC<SearchBarProps> = ({ open, onClose }) => {
134134
const [selectedIndex, setSelectedIndex] = useState(0);
135135
const inputRef = useRef<HTMLInputElement>(null);
136136

137-
const searchItems: SearchItem[] = [
137+
const searchItems: SearchItemData[] = [
138138
{
139139
id: 'wallet',
140140
title: t('search.wallet'),
@@ -260,7 +260,7 @@ export const SearchBar: React.FC<SearchBarProps> = ({ open, onClose }) => {
260260
return () => document.removeEventListener('keydown', handleKeyDown);
261261
}, [open, selectedIndex, filteredItems, onClose]);
262262

263-
const handleItemClick = (item: SearchItem) => {
263+
const handleItemClick = (item: SearchItemData) => {
264264
item.action();
265265
onClose();
266266
};

src/pages/ConnectPopup/SignFormContent.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import CardContent from '@mui/material/CardContent';
33
import Warning from '@mui/icons-material/Warning';
44
import { Tooltip, Divider, Typography } from '@mui/material';
55
import { useWallet } from '../../utils/wallet';
6-
import { Title } from '../commonStyles';
76

87
function toHex(buffer) {
98
return Array.prototype.map

src/pages/Wallet/components/SendPopup.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ function useForm(
680680

681681
const parsedAmount = parseFloat(transferAmountString);
682682
const validAmount = parsedAmount > 0 && parsedAmount <= balanceAmount;
683-
const theme = useTheme();
684683
const tokenSymbolForCheck =
685684
tokenSymbol === 'wUSDT' || tokenSymbol === 'wUSDC'
686685
? tokenSymbol.replace('w', 'Wrapped ')

0 commit comments

Comments
 (0)