diff --git a/tinlake-ui/components/ExploreCentrifugeBanner.tsx b/tinlake-ui/components/ExploreCentrifugeBanner.tsx new file mode 100644 index 00000000..2b4733a6 --- /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 cc2f1922..c46a1ee1 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 0c3638dd..f3362a05 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) => { -