-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8cf125
commit 9d02d2d
Showing
51 changed files
with
101,712 additions
and
9,488 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,8 +1,8 @@ | ||
'use client'; | ||
|
||
import PassportRedirect from '@/components/PassportRedirect'; | ||
import { passportInstance } from '../passport'; | ||
import PassportRedirect from '@/components/PassportRedirect'; | ||
|
||
export default function Page() { | ||
return <PassportRedirect passportInstance={passportInstance} />; | ||
return <PassportRedirect passportInstance={passportInstance} /> | ||
} |
6 changes: 3 additions & 3 deletions
6
examples/passport/next-connect-kit/src/components/Connect.tsx
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,5 +1,5 @@ | ||
import { ConnectKitButton } from 'connectkit'; | ||
import { ConnectKitButton } from "connectkit"; | ||
|
||
export function Connect() { | ||
return <ConnectKitButton />; | ||
} | ||
return <ConnectKitButton /> | ||
}; |
13 changes: 7 additions & 6 deletions
13
examples/passport/next-connect-kit/src/components/PassportRedirect.tsx
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,16 +1,17 @@ | ||
import { passport } from '@imtbl/sdk'; | ||
import { useEffect } from 'react'; | ||
import { passport } from '@imtbl/sdk' | ||
import { useEffect } from 'react' | ||
|
||
function PassportRedirect({ | ||
passportInstance, | ||
passportInstance | ||
}: { passportInstance: passport.Passport }) { | ||
|
||
useEffect(() => { | ||
passportInstance.loginCallback(); | ||
}, [passportInstance]); | ||
}, [passportInstance]) | ||
|
||
return ( | ||
<div>Loading...</div> | ||
); | ||
) | ||
} | ||
|
||
export default PassportRedirect; | ||
export default PassportRedirect |
Oops, something went wrong.