Skip to content

Commit

Permalink
remove export capsule
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed May 24, 2024
1 parent 0e05524 commit 68461f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions example/next/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Center, HStack, Spacer, Stack, Text, useColorMode } from "@chakra-ui/react";
import { OAuthMethod } from "@usecapsule/web-sdk";
import { useAccount, useCapsule } from "graz";
import type { NextPage } from "next";
import dynamic from "next/dynamic";
Expand Down Expand Up @@ -47,13 +46,8 @@ const HomePage: NextPage = () => {
</Stack>
<LeapSocialLogin
capsule={client?.getClient() || undefined}
oAuthMethods={[
OAuthMethod.GOOGLE,
OAuthMethod.FACEBOOK,
OAuthMethod.TWITTER,
OAuthMethod.DISCORD,
OAuthMethod.APPLE,
]}
// @ts-expect-error - type error
oAuthMethods={["GOOGLE", "FACEBOOK", "TWITTER", "DISCORD", "APPLE"]}
onAfterLoginSuccessful={() => {
void onAfterLoginSuccessful?.();
}}
Expand Down
10 changes: 2 additions & 8 deletions example/starter/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Stack, useColorMode } from "@chakra-ui/react";
import { OAuthMethod } from "@usecapsule/web-sdk";
import { useCapsule } from "graz";
import dynamic from "next/dynamic";
import { Card } from "src/ui/card/chain";
Expand All @@ -23,13 +22,8 @@ const HomePage = () => {
</Stack>
<LeapSocialLogin
capsule={client?.getClient() || undefined}
oAuthMethods={[
OAuthMethod.GOOGLE,
OAuthMethod.FACEBOOK,
OAuthMethod.TWITTER,
OAuthMethod.DISCORD,
OAuthMethod.APPLE,
]}
// @ts-expect-error - type error
oAuthMethods={["GOOGLE", "FACEBOOK", "TWITTER", "DISCORD", "APPLE"]}
onAfterLoginSuccessful={() => {
void onAfterLoginSuccessful?.();
}}
Expand Down

0 comments on commit 68461f3

Please sign in to comment.