Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 95f6812

Browse files
committed
style: fixes linter warnings
1 parent 21b3d24 commit 95f6812

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/components/organisms/Account.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,16 @@ const Account: FC<AccountProps> = (props) => {
6868
const [wrongNetModalOpen, setWrongNetModalOpen] = useState(false)
6969
const openWrongNetModal = (): void => setWrongNetModalOpen(true)
7070
const closeWrongNetModal = (): void => setWrongNetModalOpen(false)
71-
const connectionStatus: ConnectionStatus = getConnectionStatus(web3, requiredNetworkId, networkInfo?.networkId, account)
71+
const connectionStatus: ConnectionStatus = getConnectionStatus(
72+
web3, requiredNetworkId, networkInfo?.networkId, account,
73+
)
7274

73-
// TODO: extract popover functionallity into new component
7475
const [anchorEl, setAnchorEl] = React.useState<HTMLButtonElement | null>(null)
7576

7677
const popoverOpen = Boolean(anchorEl)
7778
const id = popoverOpen ? 'right-net-popover' : undefined
7879

79-
const handlePopoverClose = () => {
80+
const handlePopoverClose = (): void => {
8081
setAnchorEl(null)
8182
}
8283

@@ -111,7 +112,13 @@ const Account: FC<AccountProps> = (props) => {
111112

112113
return (
113114
<React.Fragment>
114-
<Button onClick={onAccountClicked} className={classes.button} variant="contained" color="primary" rounded>
115+
<Button
116+
onClick={onAccountClicked}
117+
className={classes.button}
118+
variant="contained"
119+
color="primary"
120+
rounded
121+
>
115122
{
116123
!!requiredNetworkId && (
117124
<NetworkIndicator
@@ -128,7 +135,6 @@ const Account: FC<AccountProps> = (props) => {
128135
{accountText()}
129136
</Typography>
130137
</Button>
131-
{/* TODO: extract molecule */}
132138
<Popover
133139
id={id}
134140
open={popoverOpen}

0 commit comments

Comments
 (0)