diff --git a/README.md b/README.md index 7e52038..885767a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ENJindex, explore NFTs and crypto collectibles. +# ENJindex, explore NFTs and crypto collectibles
Nottingham Trent University Logo diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b29a1b7..6538897 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,11 +1,11 @@ -import './App.css'; -import { useState, useMemo } from 'react'; -import PriceTracker from './components/PriceTracker'; -import Nav from './components/Nav'; -import Footer from './components/Footer'; -import Card from './components/Card'; -import tokens from './tokens'; -import TokenModal from './components/TokenModal'; +import "./App.css"; +import { useState, useMemo } from "react"; +import PriceTracker from "./components/PriceTracker"; +import Nav from "./components/Nav"; +import Footer from "./components/Footer"; +import Card from "./components/Card"; +import tokens from "./tokens"; +import TokenModal from "./components/TokenModal"; interface Token { name: string; @@ -17,8 +17,8 @@ interface Token { } const App = () => { - const [currentFilter, setCurrentFilter] = useState('All'); - const [searchQuery, setSearchQuery] = useState(''); + const [currentFilter, setCurrentFilter] = useState("All"); + const [searchQuery, setSearchQuery] = useState(""); const [selectedToken, setSelectedToken] = useState(null); const handleFilterChange = (filterName: string) => { @@ -31,12 +31,13 @@ const App = () => { const filteredTokens = useMemo(() => { let result = tokens.filter((token: Token) => { - return currentFilter === 'All' || token.type === currentFilter; + return currentFilter === "All" || token.type === currentFilter; }); if (searchQuery) { - result = result.filter((token: Token) => - token.name.toLowerCase().includes(searchQuery.toLowerCase()) || - token.collection.toLowerCase().includes(searchQuery.toLowerCase()) + result = result.filter( + (token: Token) => + token.name.toLowerCase().includes(searchQuery.toLowerCase()) || + token.collection.toLowerCase().includes(searchQuery.toLowerCase()) ); } return result; @@ -56,7 +57,10 @@ const App = () => {

Explore Tokens

-
- + @@ -73,23 +85,35 @@ const Nav = ({ links = navLinks, onNavLinkClick, onSearchChange }: NavProps) =>
-