-
Notifications
You must be signed in to change notification settings - Fork 57
feat(explorer,wallet): Fix all UI errors and warnings #3057
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
Changes from 2 commits
7390f4c
8bf1fe2
10983fe
ce3a867
0199878
3a457b4
c497c68
172d1a2
33d7d77
7e984d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ import { | |
| ButtonType, | ||
| Dialog, | ||
| DialogBody, | ||
| DialogTitle, | ||
| DialogContent, | ||
| Header, | ||
| Input, | ||
|
|
@@ -63,8 +64,10 @@ export function NicknameDialog({ isOpen, setOpen, accountID }: NicknameDialogPro | |
|
|
||
| return ( | ||
| <Dialog open={isOpen} onOpenChange={setOpen}> | ||
| <DialogContent containerId="overlay-portal-container"> | ||
| <Header title="Account Nickname" onClose={() => setOpen(false)} /> | ||
| <DialogContent containerId="overlay-portal-container" aria-describedby={undefined}> | ||
|
||
| <DialogTitle> | ||
|
||
| <Header title="Account Nickname" onClose={() => setOpen(false)} /> | ||
| </DialogTitle> | ||
| <DialogBody> | ||
| <Form className="flex h-full flex-col gap-6" form={form} onSubmit={onSubmit}> | ||
| <Input | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ import { | |
| ButtonType, | ||
| Dialog, | ||
| DialogBody, | ||
| DialogTitle, | ||
| DialogContent, | ||
| Header, | ||
| Input, | ||
|
|
@@ -92,8 +93,10 @@ export function PasswordModalDialog({ | |
|
|
||
| return ( | ||
| <Dialog open={open}> | ||
| <DialogContent containerId="overlay-portal-container"> | ||
| <Header title={title} onClose={onClose} /> | ||
| <DialogContent containerId="overlay-portal-container" aria-describedby={undefined}> | ||
| <DialogTitle> | ||
|
||
| <Header title={title} onClose={onClose} /> | ||
| </DialogTitle> | ||
| <DialogBody> | ||
| <Form form={form} id={formID} onSubmit={handleOnSubmit}> | ||
| <div className="flex flex-col gap-y-6"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,15 @@ | |
| import { ampli } from '_src/shared/analytics/ampli'; | ||
| import { useIotaLedgerClient } from '_components'; | ||
| import { useState } from 'react'; | ||
| import { Button, ButtonType, Dialog, DialogBody, DialogContent, Header } from '@iota/apps-ui-kit'; | ||
| import { | ||
| Button, | ||
| ButtonType, | ||
| Dialog, | ||
| DialogBody, | ||
| DialogTitle, | ||
| DialogContent, | ||
| Header, | ||
| } from '@iota/apps-ui-kit'; | ||
| import { Link } from 'react-router-dom'; | ||
|
|
||
| interface ConnectLedgerModalProps { | ||
|
|
@@ -39,8 +47,10 @@ export function ConnectLedgerModal({ onClose, onConfirm, onError }: ConnectLedge | |
| } | ||
| }} | ||
| > | ||
| <DialogContent containerId="overlay-portal-container"> | ||
| <Header title="Connect Ledger Wallet" onClose={onClose} titleCentered /> | ||
| <DialogContent containerId="overlay-portal-container" aria-describedby={undefined}> | ||
| <DialogTitle> | ||
|
||
| <Header title="Connect Ledger Wallet" onClose={onClose} titleCentered /> | ||
| </DialogTitle> | ||
| <DialogBody> | ||
| <div className="flex flex-col items-center gap-y-lg"> | ||
| <div className="p-md"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,15 @@ | |
| import { useAccounts } from '_app/hooks/useAccounts'; | ||
| import { useBackgroundClient } from '_app/hooks/useBackgroundClient'; | ||
| import { useMutation } from '@tanstack/react-query'; | ||
| import { Button, ButtonType, Dialog, DialogBody, DialogContent, Header } from '@iota/apps-ui-kit'; | ||
| import { | ||
| Button, | ||
| ButtonType, | ||
| Dialog, | ||
| DialogBody, | ||
| DialogTitle, | ||
| DialogContent, | ||
| Header, | ||
| } from '@iota/apps-ui-kit'; | ||
| import toast from 'react-hot-toast'; | ||
|
|
||
| interface RemoveDialogProps { | ||
|
|
@@ -39,8 +47,10 @@ export function RemoveDialog({ isOpen, setOpen, accountID }: RemoveDialogProps) | |
|
|
||
| return ( | ||
| <Dialog open={isOpen} onOpenChange={setOpen}> | ||
| <DialogContent containerId="overlay-portal-container"> | ||
| <Header title="Remove account" onClose={() => setOpen(false)} /> | ||
| <DialogContent containerId="overlay-portal-container" aria-describedby={undefined}> | ||
| <DialogTitle> | ||
|
||
| <Header title="Remove account" onClose={() => setOpen(false)} /> | ||
| </DialogTitle> | ||
| <DialogBody> | ||
| <div className="mb-md text-body-md"> | ||
| Are you sure you want to remove this account? | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,15 @@ | ||
| // Copyright (c) 2024 IOTA Stiftung | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import { Button, Address, Dialog, DialogContent, DialogBody, Header } from '@iota/apps-ui-kit'; | ||
| import { | ||
| Button, | ||
| Address, | ||
| Dialog, | ||
| DialogContent, | ||
| DialogTitle, | ||
| DialogBody, | ||
| Header, | ||
| } from '@iota/apps-ui-kit'; | ||
| import { useCopyToClipboard } from '_hooks'; | ||
| import { QR } from '_src/ui/app/components'; | ||
|
|
||
|
|
@@ -19,8 +27,10 @@ export function ReceiveTokensDialog({ address, open, setOpen }: ReceiveTokensDia | |
| return ( | ||
| <div className="relative"> | ||
| <Dialog open={open} onOpenChange={setOpen}> | ||
| <DialogContent containerId="overlay-portal-container"> | ||
| <Header title="Receive" onClose={() => setOpen(false)} /> | ||
| <DialogContent containerId="overlay-portal-container" aria-describedby={undefined}> | ||
| <DialogTitle> | ||
|
||
| <Header title="Receive" onClose={() => setOpen(false)} /> | ||
| </DialogTitle> | ||
| <DialogBody> | ||
| <div className="flex flex-col gap-lg text-center [&_span]:w-full [&_span]:break-words"> | ||
| <div className="self-center"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ import { | |
| ButtonType, | ||
| Dialog, | ||
| DialogBody, | ||
| DialogTitle, | ||
| DialogContent, | ||
| Header, | ||
| } from '@iota/apps-ui-kit'; | ||
|
|
@@ -48,8 +49,10 @@ export function ConfirmationModal({ | |
| setIsCancelLoading(false); | ||
| }} | ||
| > | ||
| <DialogContent containerId="overlay-portal-container"> | ||
| <Header title={title} /> | ||
| <DialogContent containerId="overlay-portal-container" aria-describedby={undefined}> | ||
| <DialogTitle> | ||
|
||
| <Header title={title} /> | ||
| </DialogTitle> | ||
| <DialogBody> | ||
| <div className="flex flex-col gap-lg"> | ||
| {hint ? <div className="text-body-md">{hint}</div> : null} | ||
|
|
||
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.
how is this necessary, its parent row is already specifying the row id
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.
For each column in the row cell.id is the same.
So we provide as key each time
1_functionetc.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.
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.
I investigated, the issue was not in key, but in name of column from file
TopPackagesTable.Updated.