From 17e72ccd8fd0221925c3a278b99a6f5ebcb8fb0f Mon Sep 17 00:00:00 2001 From: JP Date: Mon, 25 Sep 2023 09:09:02 -0500 Subject: [PATCH] chore: add centrifuge banner (#37) --- .../components/ExploreCentrifugeBanner.tsx | 18 +++++++++++++++++ tinlake-ui/components/Header/index.tsx | 6 ++++++ tinlake-ui/pages/index.tsx | 20 +------------------ 3 files changed, 25 insertions(+), 19 deletions(-) create mode 100644 tinlake-ui/components/ExploreCentrifugeBanner.tsx diff --git a/tinlake-ui/components/ExploreCentrifugeBanner.tsx b/tinlake-ui/components/ExploreCentrifugeBanner.tsx new file mode 100644 index 000000000..2b4733a63 --- /dev/null +++ b/tinlake-ui/components/ExploreCentrifugeBanner.tsx @@ -0,0 +1,18 @@ +import { Anchor, Box, Card, Paragraph } from 'grommet' + +export const ExploreCentrifugeBanner = () => ( + + + + Tinlake is no longer supported. Please proceed to the new Centrifuge app at{' '} + . + + + +) diff --git a/tinlake-ui/components/Header/index.tsx b/tinlake-ui/components/Header/index.tsx index cc2f19227..c46a1ee18 100644 --- a/tinlake-ui/components/Header/index.tsx +++ b/tinlake-ui/components/Header/index.tsx @@ -18,6 +18,7 @@ import { useCFGRewards } from '../../utils/useCFGRewards' import { usePool } from '../../utils/usePool' import { usePortfolio } from '../../utils/usePortfolio' import { ClientOnlyRender } from '../ClientOnlyRender' +import { ExploreCentrifugeBanner } from '../ExploreCentrifugeBanner' import { RewardsBanner } from '../RewardsBanner' import { useTinlake } from '../TinlakeProvider' import { Tooltip } from '../Tooltip' @@ -257,6 +258,11 @@ const Header: React.FC = (props: Props) => { {!props.hideRewardsBanner && } + + + + + ) } diff --git a/tinlake-ui/pages/index.tsx b/tinlake-ui/pages/index.tsx index 0c3638dd4..f3362a059 100644 --- a/tinlake-ui/pages/index.tsx +++ b/tinlake-ui/pages/index.tsx @@ -1,4 +1,4 @@ -import { Anchor, Box, Card, Paragraph } from 'grommet' +import { Box } from 'grommet' import { GetStaticProps } from 'next' import * as React from 'react' import Auth from '../components/Auth' @@ -14,23 +14,6 @@ interface Props { ipfsPools: IpfsPools } -const ExploreCentrifugeBanner = () => ( - - - - Tinlake is no longer supported. Please proceed to the new Centrifuge app at{' '} - . - - - -) - const Home: React.FC = (props: Props) => { return ( @@ -41,7 +24,6 @@ const Home: React.FC = (props: Props) => { -