-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transfers update + Remove all Etherscan links (#1164)
- Loading branch information
Showing
16 changed files
with
319 additions
and
221 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
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 |
---|---|---|
@@ -1,29 +1,34 @@ | ||
import React from 'react'; | ||
import { Button, Typography } from '@mui/material'; | ||
import { IconSize } from '~/components/App/muiTheme'; | ||
import AddressIcon from './AddressIcon'; | ||
import Row from '~/components/Common/Row'; | ||
|
||
import { FC } from '~/types'; | ||
import { CHAIN_INFO } from '~/constants'; | ||
import { useResolvedChainId } from '~/hooks/chain/useChainId'; | ||
import AddressIcon from './AddressIcon'; | ||
|
||
const FarmerChip: FC<{ account: string }> = ({ account }) => ( | ||
<Button | ||
size="small" | ||
variant="text" | ||
color="primary" | ||
sx={{ | ||
fontWeight: 400, | ||
color: 'text.primary', | ||
}} | ||
href={`https://etherscan.io/address/${account}`} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<Row gap={0.5}> | ||
<AddressIcon address={account} size={IconSize.xs} /> | ||
<Typography>{account.substring(0, 6)}</Typography> | ||
</Row> | ||
</Button> | ||
); | ||
const FarmerChip: FC<{ account: string }> = ({ account }) => { | ||
const chainId = useResolvedChainId(); | ||
return ( | ||
<Button | ||
size="small" | ||
variant="text" | ||
color="primary" | ||
sx={{ | ||
fontWeight: 400, | ||
color: 'text.primary', | ||
}} | ||
href={`${CHAIN_INFO[chainId].explorer}/address/${account}`} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<Row gap={0.5}> | ||
<AddressIcon address={account} size={IconSize.xs} /> | ||
<Typography>{account.substring(0, 6)}</Typography> | ||
</Row> | ||
</Button> | ||
); | ||
}; | ||
|
||
export default FarmerChip; |
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.