-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update react, react-query. Use retry
- Loading branch information
Showing
6 changed files
with
79 additions
and
219 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Skeleton from 'react-loading-skeleton'; | ||
import { Address } from './Address'; | ||
|
||
export interface ResultBoxProps { | ||
addr?: string; | ||
} | ||
export const ResultBox = ({ addr }: ResultBoxProps) => ( | ||
<> | ||
{addr ? <Address value={addr} /> : <Skeleton height={35} count={2} />} | ||
<div className="flex justify-center py-5"> | ||
{addr ? ( | ||
<img | ||
src={`https://api.qrserver.com/v1/create-qr-code/?data=${addr}&size=220x220&margin=0`} | ||
alt={`Address: ${addr}`} | ||
/> | ||
) : ( | ||
<Skeleton height={220} width={220} count={1} /> | ||
)} | ||
</div> | ||
</> | ||
); |
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.