re-meme icon indicating copy to clipboard operation
re-meme copied to clipboard

RainbowKit refactor to add Disclaimer

Open 0xjim opened this issue 2 years ago • 1 comments

import {
  RainbowKitProvider,
  DisclaimerComponent,
} from '@rainbow-me/rainbowkit';

const Disclaimer: DisclaimerComponent = ({ Text, Link }) => (
  <Text>
    By connecting your wallet, you agree to the{' '}
    <Link href="https://rememe.lol/terms-of-service">Terms of Service</Link> and
    acknowledge you have read and understand the app{' '}
    <Link href="https://rememe.lol/privacy-policy">Privacy Policy</Link>
  </Text>

const App = () => {
  return (
    <RainbowKitProvider
      appInfo={{
        appName: 'RainbowKit Demo',
        disclaimer: Disclaimer,
      }}
      {...etc}
    >
      {/* ... */}
    </RainbowKitProvider>
  );
};

0xjim avatar Aug 26 '22 12:08 0xjim

Will need a refactor of RainbowKit in order to add this (given the new libraries)

0xjim avatar Sep 07 '22 23:09 0xjim