diff --git a/src/app/collective-rewards/leaderboard/BuildersLeaderBoardTable.tsx b/src/app/collective-rewards/leaderboard/BuildersLeaderBoardTable.tsx index 3bdb90bc..0f20e78b 100644 --- a/src/app/collective-rewards/leaderboard/BuildersLeaderBoardTable.tsx +++ b/src/app/collective-rewards/leaderboard/BuildersLeaderBoardTable.tsx @@ -1,6 +1,5 @@ import { CycleContextProvider } from '@/app/collective-rewards/metrics' import { BuilderRewardPercentage, useGetBuildersRewards } from '@/app/collective-rewards/rewards' -import { BuilderContextProviderWithPrices } from '@/app/collective-rewards/user' import { useHandleErrors } from '@/app/collective-rewards/utils' import { AddressOrAliasWithCopy } from '@/components/Address' import { Button } from '@/components/Button' @@ -397,11 +396,9 @@ export const BuildersLeaderBoard = () => { - -
- -
-
+
+ +
diff --git a/src/app/collective-rewards/page.tsx b/src/app/collective-rewards/page.tsx index eccdbd8f..a50083ad 100644 --- a/src/app/collective-rewards/page.tsx +++ b/src/app/collective-rewards/page.tsx @@ -2,7 +2,7 @@ import { BuildersLeaderBoard } from '@/app/collective-rewards/leaderboard' import { Metrics } from '@/app/collective-rewards/metrics' -import { WhitelistContextProviderWithBuilders, WhitelistSection } from '@/app/collective-rewards/whitelist' +import { WhitelistContextProvider, WhitelistSection } from '@/app/collective-rewards/whitelist' import { MainContainer } from '@/components/MainContainer/MainContainer' export default function BuildersIncentiveMarket() { @@ -10,9 +10,9 @@ export default function BuildersIncentiveMarket() {
- + - +
diff --git a/src/app/collective-rewards/user/components/Button/BecomeABuilderButton.tsx b/src/app/collective-rewards/user/components/Button/BecomeABuilderButton.tsx index fbd8a9ee..29693082 100644 --- a/src/app/collective-rewards/user/components/Button/BecomeABuilderButton.tsx +++ b/src/app/collective-rewards/user/components/Button/BecomeABuilderButton.tsx @@ -83,9 +83,5 @@ export const BecomeABuilderHandler = ({ address }: { address: Address }) => { } export const BecomeABuilderButton = ({ address }: { address: Address }) => { - return ( - - - - ) + return } diff --git a/src/app/collective-rewards/whitelist/context/WhitelistContext.tsx b/src/app/collective-rewards/whitelist/context/WhitelistContext.tsx index 0441f7bb..cee83b67 100644 --- a/src/app/collective-rewards/whitelist/context/WhitelistContext.tsx +++ b/src/app/collective-rewards/whitelist/context/WhitelistContext.tsx @@ -38,7 +38,7 @@ interface WhitelistProviderProps { children: ReactNode } -const WhitelistContextProvider: FC = ({ children }) => { +export const WhitelistContextProvider: FC = ({ children }) => { const [search, setSearch] = useState('') const [filterBy, setFilterBy] = useState(initialFilterByValue) const { data, isLoading, error } = useGetFilteredBuilders({ builderName: search, status: filterBy }) diff --git a/src/app/providers/ContextProviders.tsx b/src/app/providers/ContextProviders.tsx index 64a51876..b758801e 100644 --- a/src/app/providers/ContextProviders.tsx +++ b/src/app/providers/ContextProviders.tsx @@ -6,6 +6,7 @@ import { WagmiProvider } from 'wagmi' import { AlertProvider } from './AlertProvider' import ErrorBoundary from '@/components/ErrorPage/ErrorBoundary' import { AllocationsContextProvider } from '../collective-rewards/allocations' +import { BuilderContextProviderWithPrices } from '../collective-rewards/user' interface Props { children: ReactNode @@ -18,7 +19,9 @@ export const ContextProviders = ({ children }: Props) => { - {children} + + {children} +