Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { useSnapshot } from 'valtio'
import { ToolsSecondaryButton } from '@/components'
import { Heading5, BodyEmphasis } from '@/typography'
import { Heading5, BodyEmphasis, BodyStandard } from '@/typography'

Check warning on line 4 in frontend/app/components/redesign/components/dialogs/GrantConfirmationDialog.tsx

View workflow job for this annotation

GitHub Actions / Lint and Typecheck

'Heading5' is defined but never used. Allowed unused vars must match /^_/u
Comment thread
kjmitchelljr marked this conversation as resolved.
Outdated
import { toolState } from '~/stores/toolStore'
import { BaseDialog } from './BaseDialog'

Expand All @@ -13,23 +13,27 @@
const { walletAddress } = useSnapshot(toolState)
return (
<BaseDialog
className="p-8 pb-4
flex flex-col items-center gap-6 w-full max-w-[442px]"
className="p-4 pt-8
flex flex-col items-center gap-4 w-full max-w-dialog"
>
<div className="text-center">
<Heading5>Please confirm you are owner of</Heading5>
<BodyEmphasis>Confirm you are the owner of</BodyEmphasis>
{walletAddress && (
<div className="flex w-full justify-center text-center mt-2">
<BodyEmphasis>{walletAddress}</BodyEmphasis>
<BodyStandard className="!text-text-success">
{walletAddress}
</BodyStandard>
</div>
)}
</div>
<div className="text-center">
<p className="text-base leading-md font-normal text-text-primary">
You will need to confirm a grant to prove that you are the owner of
the wallet address. <br /> No funds will be withdrawn from your
wallet.
</p>
<div className=" text-center">
<BodyStandard className="!text-field-helpertext-default">
The privacy and safety of your data is important to us. Please confirm
Comment thread
kjmitchelljr marked this conversation as resolved.
you own the wallet address shown above.
</BodyStandard>
<BodyEmphasis className="!text-field-helpertext-default">
No funds will be withdrawn from your wallet.
</BodyEmphasis>
</div>
<div className="w-full">
<ToolsSecondaryButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,20 @@ export const StatusDialog: React.FC<Props> = ({
}) => {
return (
<BaseDialog
className="p-8 pb-4
Comment thread
kjmitchelljr marked this conversation as resolved.
flex flex-col items-center gap-6 w-[426px]"
className="p-4 pt-8
flex flex-col items-center gap-4 w-dialog"
>
<div className="flex items-center justify-center">
<div className="flex items-center gap-2">
{status === 'error' || fieldErrors ? (
<SVGErrorVector className="w-[60px] h-[60px]" />
<SVGErrorVector className="size-6" />
) : (
<SVGMarkSuccess className="w-[60px] h-[60px]" />
<SVGMarkSuccess className="size-6" />
)}
</div>
<div className="text-center">
<p className="text-base leading-md font-normal text-text-primary">
<p className="text-base leading-md font-bold text-text-primary">
{message}
</p>
</div>

{fieldErrors && Object.keys(fieldErrors).length && (
<details className="self-start text-left">
<ul className="list-disc ml-6 text-sm text-field-helpertext-default">
Expand Down
5 changes: 4 additions & 1 deletion frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,12 @@ export default {
'256': '72rem',
'148': '42rem',
'128': '36rem',
'dialog': '34rem',
'md-old': '28rem',
},

maxWidth: {
dialog: '34rem',
},
padding: {
'3xs': '2px',
'2xs': '4px',
Expand Down
Loading