Skip to content

Commit

Permalink
Merge pull request #386 from skip-mev/add-widget-v2-again
Browse files Browse the repository at this point in the history
Add widget v2 again
  • Loading branch information
toddkao authored Oct 26, 2024
2 parents 9b04276 + 81a4af6 commit 69eab48
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"viem": "^2.16.4",
"wagmi": "^2.5.7",
"widgetv1": "npm:@skip-go/widget@^2.5.2",
"widgetv2": "npm:@skip-go/widget@^3.0.0-beta.4",
"widgetv2": "npm:@skip-go/widget@^3.0.0-beta.9",
"zod": "^3.22.4",
"zustand": "^4.5.0"
},
Expand Down
7 changes: 2 additions & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Widget } from "widgetv2";
import { defaultTheme, lightTheme, Widget } from "widgetv2";

import DiscordButton from "@/components/DiscordButton";
import { LogoGo } from "@/components/LogoGo";
import { VersionCheck } from "@/components/VersionCheck";
import WidgetButton from "@/components/WidgetButton";
import { cn } from "@/utils/ui";

Expand Down Expand Up @@ -55,15 +54,13 @@ export default function Home() {
}}
>
<Widget
theme={theme}
defaultRoute={defaultRoute}
theme={theme === 'dark' ? defaultTheme : lightTheme}
endpointOptions={endpointOptions}
apiURL={apiURL}
/>
</div>
</div>
</main>
<VersionCheck />
</div>
);
}

0 comments on commit 69eab48

Please sign in to comment.