Skip to content
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

QA: Minor Updates #57

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/api-universal/src/routes/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const accountsRouter = new Hono()
const isValid = verifyUniversalMessage({
chainId: data.chainId,
address: data.address,
content: "I want to discover what's possible in the Universal Network.",
content: 'Applying to the join the UNV beta.',
signature: data.signature,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const CardPaymentBasic = ({
<div className={cn(className)}>
<div className="flex justify-center pb-6">
<DebitCard
amount={formatUnits(BigInt(data.amount), 18).toString()}
amount={formatUnits(BigInt(data.amount), data.decimals).toString()}
tokenAddress={data.token}
chainId={chainId}
to={data.to}
Expand All @@ -65,7 +65,6 @@ export const CardPaymentBasic = ({
label="Amount"
value={formatUnits(BigInt(data.amount), data.decimals)}
/>
<RowBasic label="Expiration" value={'Never'} />
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const DIDDefaultParsedView = ({
return (
<div className={cn('flex justify-center', className)}>
<DIDCard
color="yellow"
chainId={chainId}
account={document.deconstructed.address}
resolver={document.deconstructed.resolver}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const LeaderboardApplyDialog = ({
}
try {
const _signature = await signTypedDataAsync({
content: "I want to discover what's possible in the Universal Network.",
content: 'Applying to the join the UNV beta.',
});

await mutateAsync({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export function useUniversalMessageSign() {
},
message: {
content: content,
// content: "I want to discover what's possible in the Universal Network.",
},
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function DebitCard({
case 'xLarge':
return 'text-3xl leading-tight';
case 'xxLarge':
return 'text-5xl leading-tight';
return 'text-4xl leading-tight';
default:
return '';
}
Expand Down Expand Up @@ -123,7 +123,7 @@ export function DebitCard({
'relative aspect-[36/22] w-full min-w-[320px] max-w-[560px] overflow-hidden rounded-2xl border-0 border-2 border-neutral-100 bg-gradient-to-br text-white shadow-md',
)}
>
<div className="-translate-y-1/3 absolute top-0 right-0 h-4/6 w-3/5 translate-x-1/3 rounded-full bg-white/20" />
{/* <div className="-translate-y-1/3 absolute top-0 right-0 h-4/6 w-3/5 translate-x-1/3 rounded-full bg-white/20" /> */}
<div className="relative flex h-full flex-col justify-between px-6 pt-2 pb-4">
<div className="flex items-start justify-between ">
<div className="space-y-1 pt-4">
Expand Down
22 changes: 10 additions & 12 deletions packages/universal-wallet-ui/components/identity/did-card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import { Fingerprint } from 'lucide-react';
import type { Address } from 'viem';
import { Card } from '../ui/card';
Expand Down Expand Up @@ -32,14 +30,14 @@ export function DIDCard({
'relative h-[250px] w-full min-w-[320px] max-w-[400px] overflow-hidden rounded-2xl border-0 bg-gradient-to-br text-white shadow-lg',
)}
>
<div className='absolute right-0 bottom-0 h-[200px] w-[200px] translate-x-1/3 translate-y-1/3 rounded-full bg-white/20' />
<div className='relative flex h-full flex-col justify-between p-6'>
<div className='w-full'>
<div className="space-y-2 w-full">
<div className='flex items-center justify-between gap-x-2'>
<span className='font-bold text-xl'>Universal Identity</span>
<Fingerprint size={24} />
</div>
{/* <div className='absolute right-0 bottom-0 h-[200px] w-[200px] translate-x-1/3 translate-y-1/3 rounded-full bg-white/20' /> */}
<div className="relative flex h-full flex-col justify-between p-6">
<div className="w-full">
<div className="w-full space-y-2">
<div className="flex items-center justify-between gap-x-2">
<span className="font-bold text-xl">Universal Identity</span>
<Fingerprint size={24} />
</div>
<div className="space-y-1">
<div className="font-mono text-xs">
{`did:uis:${chainId}:${truncateEthAddress(resolver, 7)}:${truncateEthAddress(account)}`}
Expand All @@ -50,11 +48,11 @@ export function DIDCard({

<div className="flex flex-col gap-y-2 ">
<div className="space-y-1">
<div className='font-black text-base'>Resolver</div>
<div className="font-black text-base">Resolver</div>
<div className="font-mono text-xs">{resolver}</div>
</div>
<div className="space-y-1">
<div className='font-black text-base'>Account</div>
<div className="font-black text-base">Account</div>
<div className="font-mono text-xs">{account}</div>
</div>
</div>
Expand Down
Loading