Skip to content

Commit

Permalink
perf: move typescript pkg into dev dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilerd committed May 13, 2024
1 parent 8d750c8 commit 41758d0
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"react-select": "^5.8.0",
"recharts": "2",
"swr": "^2.2.5",
"typescript": "^5.4.5",
"web-vitals": "^3.5.2"
},
"scripts": {
Expand Down Expand Up @@ -73,6 +72,7 @@
]
},
"devDependencies": {
"typescript": "^5.4.5",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
Expand Down
6 changes: 3 additions & 3 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const useStyles = createStyles((theme, _, u) => ({
[u.light]: { color: theme.colors.gray[7] },

display: 'block',
padding: `8px ${theme.spacing.xs}px`,
padding: `8px ${theme.spacing.xs}`,
textDecoration: 'none',
borderRadius: theme.radius.sm,
fontSize: theme.fontSizes.xs,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/DashedLine.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Group, px } from '@mantine/core';
import { Group } from '@mantine/core';
import { ReactNode } from 'react';
import { createStyles } from '@mantine/emotion';

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Section.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Group, px, Stack, Text } from '@mantine/core';
import { Box, Group, Stack, Text } from '@mantine/core';
import React from 'react';
import { createStyles } from '@mantine/emotion';

Expand All @@ -14,7 +14,7 @@ const useStyles = createStyles((theme, _, u) => ({
},

lead: {
fontSize: px(theme.fontSizes.md),
fontSize: theme.fontSizes.md,
lineHeight: 1,
color: theme.colors.gray[9],
paddingBottom: theme.spacing.sm,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { JournalBalanceCheckItem } from '../../../rest-model';
import { ActionIcon, Badge, Table, px } from '@mantine/core';
import { ActionIcon, Badge, Table } from '@mantine/core';
import { format } from 'date-fns';
import Amount from '../../Amount';
import BigNumber from 'bignumber.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ActionIcon, Badge, Group, Table, px } from '@mantine/core';
import { ActionIcon, Badge, Group, Table } from '@mantine/core';
import { format } from 'date-fns';
import { Dispatch, SetStateAction } from 'react';
import { JournalBlancePadItem, JournalItem } from '../../../rest-model';
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/SingleAccount.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Badge, Container, Group, px, SimpleGrid, Stack, Table, Tabs, Text, Title } from '@mantine/core';
import { Badge, Container, Group, SimpleGrid, Stack, Table, Tabs, Text, Title } from '@mantine/core';
import { IconMessageCircle, IconPhoto, IconSettings } from '@tabler/icons-react';
import { format } from 'date-fns';
import { useParams } from 'react-router';
Expand All @@ -21,7 +21,7 @@ const useStyles = createStyles((theme, _, u) => ({
fontWeight: 500,
},
detailAmount: {
fontSize: px(theme.fontSizes.lg),
fontSize: theme.fontSizes.lg,
},
}));

Expand Down

0 comments on commit 41758d0

Please sign in to comment.