Skip to content

Commit

Permalink
Remove passkey/biometric button and make UI adjustments (#75)
Browse files Browse the repository at this point in the history
close #72
  • Loading branch information
justinbarry authored Feb 8, 2024
1 parent b2fae19 commit 2da222b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-pandas-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"abstraxion-dashboard": patch
---

Remove passkey biometrics button, remove white avatar and update copy
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ export const AbstraxionGrant = ({
<>
<div className="ui-mb-10 ui-flex ui-items-center ui-justify-center">
<Image src={burntAvatar} alt="Burnt Avatar" />
<div className="ui-mx-6 ui-h-[1px] ui-w-10 ui-bg-white ui-opacity-20"></div>{" "}
{/* This is the divider */}
<div className="ui-h-16 ui-w-16 ui-bg-gray-300 ui-rounded-full"></div>
</div>
<div className="mb-4">
<h1 className="ui-text-base ui-font-bold ui-leading-tight">
Expand All @@ -166,7 +163,7 @@ export const AbstraxionGrant = ({
<span className="ui-mr-2">
<CheckIcon color="white" />
</span>
View your basic profile info
Log you in to their app
</li>
</ul>
<div className="ui-w-full ui-bg-white ui-opacity-20 ui-h-[1px] ui-mb-8" />
Expand Down
22 changes: 0 additions & 22 deletions apps/abstraxion-dashboard/components/AbstraxionWallets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,6 @@ export const AbstraxionWallets = () => {
}
};

const registerWebAuthn = useCallback(async () => {
try {
await stytchClient.webauthn.register({
domain: window.location.hostname,
session_duration_minutes: 60,
});
} catch (error) {
console.log(error);
}
}, [stytchClient]);

if (error) {
setAbstraxionError((error as Error).message);
return null;
Expand Down Expand Up @@ -189,17 +178,6 @@ export const AbstraxionWallets = () => {
</div>
)}
<div className="ui-flex ui-w-full ui-flex-col ui-items-center ui-gap-4">
{connectionType === "stytch" &&
user &&
user?.webauthn_registrations.length < 1 && (
<Button
structure="outlined"
fullWidth={true}
onClick={registerWebAuthn}
>
Add Passkey/Biometrics
</Button>
)}
<Button
structure="outlined"
fullWidth={true}
Expand Down

0 comments on commit 2da222b

Please sign in to comment.