-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into frame-render
- Loading branch information
Showing
98 changed files
with
1,127 additions
and
1,452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+590 KB
apps/base-docs/assets/images/resend-email-campaigns/ock-use-template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+165 KB
apps/base-docs/assets/images/resend-email-campaigns/resend-api-keys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+770 KB
apps/base-docs/assets/images/resend-email-campaigns/resend-contact-added.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+797 KB
apps/base-docs/assets/images/resend-email-campaigns/resend-mailing-list-prompt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+177 KB
apps/base-docs/assets/images/resend-email-campaigns/resend-user-subscribed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+415 KB
apps/base-docs/assets/images/resend-email-campaigns/vercel-import-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 KB
apps/base-docs/assets/images/resend-email-campaigns/wc-project-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,11 +51,9 @@ The [quick start] guide for RainbowKit also contains step-by-step instructions f | |
|
||
Start by installing the dependencies: | ||
|
||
:::bash | ||
|
||
```bash | ||
npm install @rainbow-me/rainbowkit wagmi [email protected] @tanstack/react-query | ||
|
||
::: | ||
``` | ||
|
||
:::info | ||
Onchain libraries and packages tend to require very current versions of Node. If you're not already using it, you may want to install [nvm]. | ||
|
@@ -65,19 +63,19 @@ Onchain libraries and packages tend to require very current versions of Node. If | |
|
||
In Next.js with the app router, the root of your app is found in `app/layout.tsx`, if you followed the recommended setup options. As you want the blockchain provider context to be available for the entire app, you'll add it here. | ||
|
||
You'll need to set up your providers in a second file, so that you can add `"use client":` to the top. Doing so forces this code to be run client side, which is necessary since your server won't have access to your users' wallet information. | ||
You'll need to set up your providers in a second file, so that you can add `'use client';` to the top. Doing so forces this code to be run client side, which is necessary since your server won't have access to your users' wallet information. | ||
|
||
:::caution | ||
|
||
You must configure these wrappers in a separate file. It will not work if you try to add them and `"use client":` directly in `layout.tsx`! | ||
You must configure these wrappers in a separate file. It will not work if you try to add them and `'use client';` directly in `layout.tsx`! | ||
|
||
::: | ||
|
||
Add a new file in the `app` folder called `providers.tsx`. | ||
|
||
### Imports | ||
|
||
As discussed above, add `"use client":` to the top of the file. | ||
As discussed above, add `'use client';` to the top of the file. | ||
|
||
Continue with the imports: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,42 @@ | ||
import React from 'react'; | ||
import {useColorMode, useThemeConfig} from '@docusaurus/theme-common'; | ||
import React, { useCallback } from 'react'; | ||
import { useColorMode, useThemeConfig } from '@docusaurus/theme-common'; | ||
import ColorModeToggle from '@theme/ColorModeToggle'; | ||
import styles from './styles.module.css'; | ||
export default function NavbarColorModeToggle({className}) { | ||
import logEvent, { | ||
ActionType, | ||
ComponentType, | ||
AnalyticsEventImportance, | ||
} from 'base-ui/utils/logEvent'; | ||
|
||
export default function NavbarColorModeToggle({ className }) { | ||
const navbarStyle = useThemeConfig().navbar.style; | ||
const disabled = useThemeConfig().colorMode.disableSwitch; | ||
const {colorMode, setColorMode} = useColorMode(); | ||
const { colorMode, setColorMode } = useColorMode(); | ||
|
||
const toggleSwitch = useCallback(() => { | ||
const newColorMode = colorMode === 'dark' ? 'light' : 'dark'; | ||
|
||
logEvent( | ||
`colormode_toggle_from_${colorMode}_to_${newColorMode}`, | ||
{ | ||
action: ActionType.click, | ||
componentType: ComponentType.icon, | ||
context: 'base_docs_navbar', | ||
}, | ||
AnalyticsEventImportance.low, | ||
); | ||
setColorMode(newColorMode); | ||
}, [colorMode, setColorMode]); | ||
|
||
if (disabled) { | ||
return null; | ||
} | ||
return ( | ||
<ColorModeToggle | ||
className={className} | ||
buttonClassName={ | ||
navbarStyle === 'dark' ? styles.darkNavbarColorModeToggle : undefined | ||
} | ||
buttonClassName={navbarStyle === 'dark' ? styles.darkNavbarColorModeToggle : undefined} | ||
value={colorMode} | ||
onChange={setColorMode} | ||
onChange={toggleSwitch} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.