-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
161 additions
and
9 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
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
Binary file added
BIN
+44.5 KB
ui/address/__screenshots__/AddressDetails.pw.tsx_default_filecoin-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+40.5 KB
ui/address/__screenshots__/AddressDetails.pw.tsx_default_mobile-filecoin-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,39 @@ | ||
import { Tag } from '@chakra-ui/react'; | ||
import React from 'react'; | ||
|
||
import type { FilecoinActorType } from 'types/api/address'; | ||
|
||
const ACTOR_TYPES: Record<FilecoinActorType, string> = { | ||
account: 'Account', | ||
cron: 'Scheduled Tasks', | ||
datacap: 'Data Cap Management', | ||
eam: 'Ethereum Address Manager', | ||
ethaccount: 'Ethereum-Compatible Account', | ||
evm: 'Ethereum Virtual Machine', | ||
init: 'Initialization', | ||
market: 'Storage Market', | ||
miner: 'Storage Provider', | ||
multisig: 'Multi-Signature Wallet', | ||
paych: 'Payment Channel', | ||
placeholder: 'Placeholder Address', | ||
power: 'Power Management', | ||
reward: 'Incentives and Rewards', | ||
system: 'System Operations', | ||
verifreg: 'Verification Registry', | ||
}; | ||
|
||
type Props = { | ||
actorType: FilecoinActorType; | ||
} | ||
|
||
const FilecoinActorTag = ({ actorType }: Props) => { | ||
const text = ACTOR_TYPES[actorType]; | ||
|
||
if (!text) { | ||
return null; | ||
} | ||
|
||
return <Tag colorScheme="gray">{ text }</Tag>; | ||
}; | ||
|
||
export default FilecoinActorTag; |
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