Skip to content

Commit

Permalink
Move tax report to top of nav links
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed May 24, 2024
1 parent a89edd8 commit 0dd293d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default tseslint.config(
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/restrict-template-expressions": "error",
"@typescript-eslint/unbound-method": "error",
"@typescript-eslint/promise-function-async": "warn",
"@typescript-eslint/promise-function-async": "error",
"rxjs/no-async-subscribe": "warn",
"rxjs/no-ignored-observable": "warn",
"rxjs/no-ignored-subscription": "warn",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"server:build": "tsc --project tsconfig.server.json",
"server:dev": "ts-node-dev --project tsconfig.server.json src/index -watch -server -account -import",
"start": "node dist/index.js -server",
"start:dev": "concurrently \"yarn run server:dev\" \"yarn run client:dev\"",
"start:dev": "concurrently \"yarn server:dev\" \"yarn client:dev\"",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build -o dist/storybook"
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Portfolio/Layout/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { TradeLink } from "../Trade/links";

export const links = (portfolioId: string): Record<string, string> => {
const result: Record<string, string> = {};
result[ReportLink.toIndex(portfolioId)] = "Tax reports";
result[StatementLink.toIndex(portfolioId)] = "Statements";
result[TradeLink.toIndex(portfolioId)] = "Trades";
result[`/portfolio/${portfolioId}/positions/all`] = "Positions";
result[`/portfolio/${portfolioId}/orders`] = "Open Orders";
result[BalanceLink.toIndex(portfolioId)] = "Balances";
result[`/portfolio/${portfolioId}/symbols`] = "Symbols";
result[ReportLink.toIndex(portfolioId)] = "Tax reports";
result[`/portfolio/${portfolioId}/parameters`] = "Settings";
return result;
};

0 comments on commit 0dd293d

Please sign in to comment.