From 89558d53c841ba5dc84cfa529794cf7e6c648fa6 Mon Sep 17 00:00:00 2001 From: Spacebean Date: Sat, 14 Sep 2024 04:16:51 -0600 Subject: [PATCH] feat: update UI --- projects/ui/src/components/App/index.tsx | 4 +- projects/ui/src/components/Nav/routes.ts | 14 +- .../Silo/SeedGauge/SeedGaugeTable.tsx | 2 + .../src/hooks/beanstalk/useAvgSeedsPerBDV.ts | 1 + .../ui/src/hooks/beanstalk/useSeedGauge.ts | 166 +++++++++++++----- 5 files changed, 138 insertions(+), 49 deletions(-) diff --git a/projects/ui/src/components/App/index.tsx b/projects/ui/src/components/App/index.tsx index 4955c7befb..a5dd6965b0 100644 --- a/projects/ui/src/components/App/index.tsx +++ b/projects/ui/src/components/App/index.tsx @@ -32,7 +32,7 @@ import GovernancePage from '~/pages/governance'; import ProposalPage from '~/pages/governance/proposal'; import FarmerDelegatePage from '~/pages/governance/delegate'; import TransactionHistoryPage from '~/pages/history'; -import NFTPage from '~/pages/nft'; +// import NFTPage from '~/pages/nft'; import SiloPage from '~/pages/silo'; import SiloTokenPage from '~/pages/silo/token'; import SwapPage from '~/pages/swap'; @@ -246,7 +246,7 @@ function Arbitrum() { element={} /> - } /> + {/* } /> */} } /> ['data']; onToggleAdvancedMode: (v: boolean) => void; }) => { + + console.log('data', data); const [isAdvanced, setIsAdvanced] = useState(false); const rows = useTableConfig(isAdvanced, data); const cols = isAdvanced ? advancedViewColumns : basicViewColumns; diff --git a/projects/ui/src/hooks/beanstalk/useAvgSeedsPerBDV.ts b/projects/ui/src/hooks/beanstalk/useAvgSeedsPerBDV.ts index b11219e62a..347a0fd455 100644 --- a/projects/ui/src/hooks/beanstalk/useAvgSeedsPerBDV.ts +++ b/projects/ui/src/hooks/beanstalk/useAvgSeedsPerBDV.ts @@ -55,6 +55,7 @@ const apolloFetch = async ( notifyOnNetworkStatusChange: true, }); +// BS3TODO: Fix me to include L1 silo whitelist // Main hook with improved error handling and performance const useAvgSeedsPerBDV = ( range: Range