-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(wallet): add watch only label and alerts to unowned NFTs (#24569)
* feat(wallet): add label to watch-only NFTs * feat(wallet): add info alert for unowned NFT in details screen * chore(wallet): fix string description
- Loading branch information
1 parent
4e7e814
commit b0e0733
Showing
12 changed files
with
223 additions
and
42 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
56 changes: 56 additions & 0 deletions
56
...omponents/desktop/views/portfolio/components/nft-grid-view/nft-grid-view-item.stories.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,56 @@ | ||
// Copyright (c) 2024 The Brave Authors. All rights reserved. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
import * as React from 'react' | ||
|
||
// components | ||
import { | ||
WalletPanelStory // | ||
} from '../../../../../../stories/wrappers/wallet-panel-story-wrapper' | ||
import { PanelWrapper } from '../../../../../../panel/style' | ||
import { NFTGridViewItem } from './nft-grid-view-item' | ||
|
||
// mocks | ||
import { | ||
mockMoonCatNFT // | ||
} from '../../../../../../stories/mock-data/mock-asset-options' | ||
|
||
export const _NftGridViewItem = { | ||
render: () => { | ||
return ( | ||
<WalletPanelStory> | ||
<PanelWrapper> | ||
<NFTGridViewItem | ||
isTokenHidden={false} | ||
isTokenSpam={false} | ||
onSelectAsset={() => undefined} | ||
token={mockMoonCatNFT} | ||
isWatchOnly={false} | ||
/> | ||
</PanelWrapper> | ||
</WalletPanelStory> | ||
) | ||
} | ||
} | ||
export const _JunkAndWatchOnlyNftGridViewItem = { | ||
render: () => { | ||
return ( | ||
<WalletPanelStory> | ||
<PanelWrapper> | ||
<NFTGridViewItem | ||
isTokenHidden={false} | ||
isTokenSpam={true} | ||
onSelectAsset={() => undefined} | ||
token={mockMoonCatNFT} | ||
isWatchOnly={true} | ||
/> | ||
</PanelWrapper> | ||
</WalletPanelStory> | ||
) | ||
} | ||
} | ||
export default { | ||
component: NFTGridViewItem | ||
} |
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
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
Oops, something went wrong.