forked from MystenLabs/sui
-
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.
Wallet txn activities (MystenLabs#7437)
Wallet activities update. - Update to match the latest design, - I moved the from redux to react query - Note (using the old icons) https://user-images.githubusercontent.com/8676844/215287199-5e1d03fd-550b-41e0-a75b-4207d3bff043.mov <img width="409" alt="Screenshot 2023-01-30 at 10 35 17 AM" src="https://user-images.githubusercontent.com/8676844/215531395-1bb12f2a-8231-435a-9fa9-d1fd0b9a306a.png"> <img width="436" alt="Screenshot 2023-01-31 at 10 04 45 AM" src="https://user-images.githubusercontent.com/8676844/215797180-8ce38727-278d-47d7-a058-e03e8dfff15c.png">
- Loading branch information
Showing
30 changed files
with
1,197 additions
and
607 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
12 changes: 12 additions & 0 deletions
12
apps/wallet/src/ui/app/components/receipt-card/DelegationObjectCard.tsx
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,12 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { TxnAddress } from '_components/receipt-card/TxnAddress'; | ||
|
||
export function DelegationObjectCard({ | ||
senderAddress, | ||
}: { | ||
senderAddress: string; | ||
}) { | ||
return <TxnAddress address={senderAddress} label="From" />; | ||
} |
240 changes: 0 additions & 240 deletions
240
apps/wallet/src/ui/app/components/receipt-card/ReceiptCard.module.scss
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
apps/wallet/src/ui/app/components/receipt-card/ReceiptCardBg.tsx
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,25 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import cl from 'classnames'; | ||
|
||
import type { ReactNode } from 'react'; | ||
|
||
export function ReceiptCardBg({ | ||
status, | ||
children, | ||
}: { | ||
status: boolean; | ||
children: ReactNode; | ||
}) { | ||
return ( | ||
<div | ||
className={cl( | ||
"p-5 pb-0 rounded-t-lg flex flex-col item-center after:content-[''] after:bg-[url('_assets/images/receipt_bottom.svg')] after:w-[320px] after:h-5 after:ml-[-20px] after:top-4 after:-mt-6 after:relative divide-y divide-solid divide-steel/20 divide-x-0 gap-3.5", | ||
status ? 'bg-success-light' : 'bg-issue-light' | ||
)} | ||
> | ||
{children} | ||
</div> | ||
); | ||
} |
Oops, something went wrong.