Celo 🌈 RainbowKit
// for 0.12.0
import "@rainbow-me/rainbowkit/styles.css";
import { RainbowKitProvider } from "@rainbow-me/rainbowkit";
import { configureChains, createClient, WagmiConfig } from "wagmi";
import { jsonRpcProvider } from "wagmi/providers/jsonRpc";
import celoGroups from "@celo/rainbowkit-celo/lists";
import { Alfajores, Celo, Cannoli } from "@celo/rainbowkit-celo/chains";
const projectId = "your-wallet-connnect-project-id" // get one at https://cloud.walletconnect.com/app
const connectors = celoGroups({
chains,
projectId,
appName: (typeof document === "object" && document.title) || "Sample App",
});
const wagmiClient = createClient({
autoConnect: true,
connectors,
provider,
});
export default function Wrap() {
return (
<WagmiConfig client={wagmiClient}>
<RainbowKitProvider chains={chains} coolMode={true}>
<YourApp />
</RainbowKitProvider>
</WagmiConfig>
);
}
function YourApp() {
return <ConnectButton />;
};
Follow the instructions for installing rainbowkit and...Install As a Package
yarn add @celo/rainbowkit-celo
Or copy from source files
ChainsWallets