Skip to content

Commit

Permalink
✨ feat: next rainbowKit ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
chaichuanfa committed Mar 21, 2023
1 parent 5b8a4b9 commit d0f5ccd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/rainbowkit-next-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "rainbowkit-next-starter",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"start": "next dev",
"build": "next build",
Expand Down
7 changes: 4 additions & 3 deletions packages/rainbowkit-next-starter/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import '../styles/globals.css';
import dynamic from 'next/dynamic';
import DynamicWagmi from '../src/components/dynamicWagmi';

const DynamicWagmi = dynamic(() => import('../src/components/dynamicWagmi/index'), {
ssr: false,
});
// const DynamicWagmi = dynamic(() => import('../src/components/dynamicWagmi/index'), {
// ssr: false,
// });

function MyApp({ Component, pageProps }) {
return (
Expand Down
1 change: 0 additions & 1 deletion packages/web-demo/src/components/DemoSetting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ function DemoSetting(props: any) {
modalBorderRadius: Number(modalBorderRadius),
});
localStorage.setItem('dapp_particle_modal_border_radius', modalBorderRadius + '');
console.log('change modal border radius');
}, [modalBorderRadius]);
return (
<div className="filter-box card" style={{ flex: 1 }}>
Expand Down
1 change: 0 additions & 1 deletion packages/web-demo/src/components/PnSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function PnSelect(props: PnSelectProps) {
const item = props.options.find((item) => item.value === value);
return item;
}, [value]);
console.log(props);

useEffect(() => {
if (props?.value) {
Expand Down

0 comments on commit d0f5ccd

Please sign in to comment.