Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed Nov 23, 2024
1 parent 281d8aa commit 8e69b85
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 6 deletions.
7 changes: 6 additions & 1 deletion src/app/components/Portfolio/Balance/BalanceShow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ const BalanceShow: FunctionComponent<Props> = ({ ..._rest }): React.ReactNode =>
</Flex>

<Flex justifyContent="center" gap="2" mt="1">
<IconButton aria-label="Back" icon={<ArrowBackIcon />} variant="ghost" onClick={(): void => navigate(-1)} />
<IconButton
aria-label="Back"
icon={<ArrowBackIcon />}
variant="ghost"
onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises
/>
<IconButton aria-label="Edit" icon={<EditIcon />} variant="ghost" as={RouterLink} to="edit" />
<Form method="post" action="delete" className="inline">
<IconButton aria-label="Delete" icon={<DeleteIcon />} variant="ghost" type="submit" />
Expand Down
4 changes: 3 additions & 1 deletion src/app/components/Portfolio/Portfolio/PortfolioEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ const PortfolioEdit: FunctionComponent<PortfolioShowProps> = ({ ..._rest }): Rea
</Flex>
<Flex justifyContent="center" gap="2" mt="1">
<Center w="40px" h="40px">
<ArrowBackIcon onClick={(): void => navigate(-1)} />
<ArrowBackIcon
onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises
/>
</Center>
<RouterLink to={`../`}>
<Center w="40px" h="40px">
Expand Down
7 changes: 6 additions & 1 deletion src/app/components/Portfolio/Position/PositionShow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ const PositionShow: FunctionComponent<PositionShowProps> = ({ ..._rest }): React
</Flex>

<Flex justifyContent="center" gap="2" mt="1">
<IconButton aria-label="Back" icon={<ArrowBackIcon />} variant="ghost" onClick={(): void => navigate(-1)} />
<IconButton
aria-label="Back"
icon={<ArrowBackIcon />}
variant="ghost"
onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises
/>
<RouterLink to={`${PositionLink.editItem(portfolioId, thisPosition.id)}`}>
<IconButton aria-label="Edit position" icon={<EditIcon />} variant="ghost" type="submit" />
</RouterLink>
Expand Down
7 changes: 6 additions & 1 deletion src/app/components/Portfolio/Statement/StatementShow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ const StatementShow: FunctionComponent<Props> = ({ ..._rest }): React.ReactNode
)}

<Flex justifyContent="center" gap="2" mt="1">
<IconButton aria-label="Back" icon={<ArrowBackIcon />} variant="ghost" onClick={(): void => navigate(-1)} />
<IconButton
aria-label="Back"
icon={<ArrowBackIcon />}
variant="ghost"
onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises
/>
<IconButton aria-label="Edit" icon={<EditIcon />} variant="ghost" as={RouterLink} to="edit" />
<Form method="post" action="delete" className="inline">
<IconButton aria-label="Delete" icon={<DeleteIcon />} variant="ghost" type="submit" />
Expand Down
7 changes: 6 additions & 1 deletion src/app/components/Portfolio/Trade/TradeShow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ const TradeShow: FunctionComponent<Props> = ({ ..._rest }): React.ReactNode => {
</Flex>

<Flex justifyContent="center" gap="2" mt="1">
<IconButton aria-label="Back" icon={<ArrowBackIcon />} variant="ghost" onClick={(): void => navigate(-1)} />
<IconButton
aria-label="Back"
icon={<ArrowBackIcon />}
variant="ghost"
onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises
/>
<IconButton aria-label="Edit" icon={<EditIcon />} variant="ghost" as={RouterLink} to="edit" />
<Form method="post" action="delete" className="inline">
<IconButton aria-label="Delete" icon={<DeleteIcon />} variant="ghost" type="submit" />
Expand Down
7 changes: 6 additions & 1 deletion src/app/components/Repository/Options/ShowOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ const ShowOption: FunctionComponent<Props> = ({ ..._rest }): React.ReactNode =>
</Flex>

<Flex justifyContent="center" gap="2" mt="1">
<IconButton aria-label="Back" icon={<ArrowBackIcon />} variant="ghost" onClick={(): void => navigate(-1)} />
<IconButton
aria-label="Back"
icon={<ArrowBackIcon />}
variant="ghost"
onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises
/>
<RouterLink to="edit">
<Center w="40px" h="40px">
<EditIcon />
Expand Down

0 comments on commit 8e69b85

Please sign in to comment.