diff --git a/src/app/components/Portfolio/Balance/BalanceShow.tsx b/src/app/components/Portfolio/Balance/BalanceShow.tsx index aed49f4..7dc8efb 100644 --- a/src/app/components/Portfolio/Balance/BalanceShow.tsx +++ b/src/app/components/Portfolio/Balance/BalanceShow.tsx @@ -40,7 +40,12 @@ const BalanceShow: FunctionComponent = ({ ..._rest }): React.ReactNode => - } variant="ghost" onClick={(): void => navigate(-1)} /> + } + variant="ghost" + onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises + /> } variant="ghost" as={RouterLink} to="edit" />
} variant="ghost" type="submit" /> diff --git a/src/app/components/Portfolio/Portfolio/PortfolioEdit.tsx b/src/app/components/Portfolio/Portfolio/PortfolioEdit.tsx index 66dda86..2c1493c 100644 --- a/src/app/components/Portfolio/Portfolio/PortfolioEdit.tsx +++ b/src/app/components/Portfolio/Portfolio/PortfolioEdit.tsx @@ -47,7 +47,9 @@ const PortfolioEdit: FunctionComponent = ({ ..._rest }): Rea
- navigate(-1)} /> + navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises + />
diff --git a/src/app/components/Portfolio/Position/PositionShow.tsx b/src/app/components/Portfolio/Position/PositionShow.tsx index c67c2bc..5fc7782 100644 --- a/src/app/components/Portfolio/Position/PositionShow.tsx +++ b/src/app/components/Portfolio/Position/PositionShow.tsx @@ -127,7 +127,12 @@ const PositionShow: FunctionComponent = ({ ..._rest }): React - } variant="ghost" onClick={(): void => navigate(-1)} /> + } + variant="ghost" + onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises + /> } variant="ghost" type="submit" /> diff --git a/src/app/components/Portfolio/Statement/StatementShow.tsx b/src/app/components/Portfolio/Statement/StatementShow.tsx index 1192655..6e33804 100644 --- a/src/app/components/Portfolio/Statement/StatementShow.tsx +++ b/src/app/components/Portfolio/Statement/StatementShow.tsx @@ -45,7 +45,12 @@ const StatementShow: FunctionComponent = ({ ..._rest }): React.ReactNode )} - } variant="ghost" onClick={(): void => navigate(-1)} /> + } + variant="ghost" + onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises + /> } variant="ghost" as={RouterLink} to="edit" /> } variant="ghost" type="submit" /> diff --git a/src/app/components/Portfolio/Trade/TradeShow.tsx b/src/app/components/Portfolio/Trade/TradeShow.tsx index 2ed8e27..260f6e3 100644 --- a/src/app/components/Portfolio/Trade/TradeShow.tsx +++ b/src/app/components/Portfolio/Trade/TradeShow.tsx @@ -167,7 +167,12 @@ const TradeShow: FunctionComponent = ({ ..._rest }): React.ReactNode => { - } variant="ghost" onClick={(): void => navigate(-1)} /> + } + variant="ghost" + onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises + /> } variant="ghost" as={RouterLink} to="edit" /> } variant="ghost" type="submit" /> diff --git a/src/app/components/Repository/Options/ShowOption.tsx b/src/app/components/Repository/Options/ShowOption.tsx index 2c7501f..3aa580e 100644 --- a/src/app/components/Repository/Options/ShowOption.tsx +++ b/src/app/components/Repository/Options/ShowOption.tsx @@ -23,7 +23,12 @@ const ShowOption: FunctionComponent = ({ ..._rest }): React.ReactNode => - } variant="ghost" onClick={(): void => navigate(-1)} /> + } + variant="ghost" + onClick={async () => navigate(-1)} // eslint-disable-line @typescript-eslint/no-misused-promises + />