From 37b82a914585bd3b0104c033d443514f6ba8ec06 Mon Sep 17 00:00:00 2001 From: mapachurro Date: Mon, 22 Jul 2024 15:08:29 -0400 Subject: [PATCH] attempting to solve homepage resolution --- index.html | 4 ++-- src/App.jsx | 17 +---------------- vite.config.js | 2 +- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 16dcb00..823b917 100644 --- a/index.html +++ b/index.html @@ -4,10 +4,10 @@ Education DAO Glossary - +
- + diff --git a/src/App.jsx b/src/App.jsx index 2f4689c..b8b6c9c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -37,7 +37,7 @@ function App() { useEffect(() => { if (searchResults.length > 0) { - const query = searchResults[0].term; // Reuse the last search query + const query = searchResults[0].term; handleSearch(query); } }, [i18n.language]); @@ -49,21 +49,6 @@ function App() { } /> } /> - {searchResults.length > 0 && ( -
    - {searchResults.map((result) => ( -
  • navigate(`/term/${encodeURIComponent(result.term)}`)} - style={{ - cursor: allTerms.includes(result.term) ? 'pointer' : 'default', - }} - > - {result.term} -
  • - ))} -
- )} ); } diff --git a/vite.config.js b/vite.config.js index d5c6b59..c871178 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react'; import path from 'path'; export default defineConfig({ - base: '/web3-glossary-website/', // Ensure this is set to your repository name + base: '/web3-glossary-website/', plugins: [react()], resolve: { alias: {