-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(proof): connect to spirekey sdk #2373
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
1ac2ccc
Scaffold sdk implement connect
EnoF ee32a73
Implement minting attendance token using spirekey sdk sign
EnoF 25e496c
Wait for account to be minted
EnoF a0b2fb4
Merge branch 'main' into feat/proof-of-us-spirekey-sdk
sstraatemans a092998
stay logged in
sstraatemans 08e285b
working as expected
sstraatemans adf07c1
fix build
sstraatemans 9867545
fix attendance token
sstraatemans 8910fce
add a trycatch for the login call
sstraatemans 162bdb4
adding try/catches to all spirekey calls
sstraatemans b95f491
fix build
sstraatemans d35623d
Merge branch 'main' into feat/proof-of-us-spirekey-sdk
sstraatemans 7cdc0a7
update spirekey sdk version
sstraatemans 2880360
latest
sstraatemans 3227090
trying to test
sstraatemans 929e74f
last try
sstraatemans 7061524
fix for the tests
sstraatemans ff534d6
fix the login of pou
sstraatemans 17bab3f
add extra test
sstraatemans 2aa2bb2
fix the new spirekey account names with the '.'
sstraatemans 5480492
Merge branch 'main' into feat/proof-of-us-spirekey-sdk
sstraatemans bd04bfa
Merge branch 'main' into feat/proof-of-us-spirekey-sdk
sstraatemans 52488e7
fix e2e tests
sstraatemans f1813a3
Merge branch 'main' into feat/proof-of-us-spirekey-sdk
sstraatemans 2735ca6
cleanup
sstraatemans 3a57305
fix theme
sstraatemans 39e5446
Merge branch 'main' into feat/proof-of-us-spirekey-sdk
sstraatemans 6326d6e
fixing the loader
sstraatemans a54914c
fix build
sstraatemans File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
28 changes: 22 additions & 6 deletions
28
packages/apps/proof-of-us/src/components/LoginBoundry/LoginBoundry.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,14 +1,30 @@ | ||
import { useAccount } from '@/hooks/account'; | ||
import { Stack } from '@kadena/kode-ui'; | ||
import type { FC, PropsWithChildren } from 'react'; | ||
import { useEffect } from 'react'; | ||
import { Button } from '../Button/Button'; | ||
|
||
export const LoginBoundry: FC<PropsWithChildren> = ({ children }) => { | ||
const { account, isMounted, login } = useAccount(); | ||
|
||
useEffect(() => { | ||
if (!account && isMounted) { | ||
login(); | ||
} | ||
}, [account, isMounted]); | ||
const handleLogin = () => { | ||
login(); | ||
}; | ||
|
||
if (!isMounted) return; | ||
|
||
if (isMounted && !account) { | ||
return ( | ||
<Stack | ||
width="100%" | ||
height="100%" | ||
justifyContent="center" | ||
alignItems="center" | ||
paddingInline="xxxl" | ||
> | ||
<Button onPress={handleLogin}>Login</Button> | ||
</Stack> | ||
); | ||
} | ||
|
||
return <>{children}</>; | ||
}; |
76 changes: 0 additions & 76 deletions
76
packages/apps/proof-of-us/src/components/MintView/MintView.tsx
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
packages/apps/proof-of-us/src/components/MintView/style.css.ts
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use 13?