Skip to content

Commit fe236b8

Browse files
committed
chore: remove unused dependencies and exports from web
1 parent 530c4e6 commit fe236b8

File tree

28 files changed

+48
-184
lines changed

28 files changed

+48
-184
lines changed

apps/web/package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
"react-dom": "workspace:react-dom__19.x@*",
4949
"react-error-boundary": "^5.0.0",
5050
"react-router-dom": "^6.30.0",
51-
"recharts": "^2.15.3",
52-
"tailwind-merge": "^2.6.0",
5351
"ts-pattern": "workspace:ts-pattern__5.x@*",
5452
"type-fest": "workspace:type-fest__4.x@*",
5553
"xlsx": "^0.18.5",
@@ -62,11 +60,7 @@
6260
"@storybook/react-vite": "catalog:",
6361
"@tailwindcss/vite": "catalog:",
6462
"@vitejs/plugin-react-swc": "^3.9.0",
65-
"esbuild-wasm": "catalog:",
6663
"happy-dom": "catalog:",
67-
"prop-types": "^15.8.1",
68-
"rollup-plugin-copy": "^3.5.0",
69-
"sort-json": "^2.0.1",
7064
"tailwindcss": "catalog:",
7165
"vite": "catalog:",
7266
"vite-plugin-compression": "^0.5.1"

apps/web/src/components/IdentificationForm/IdentificationForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { z } from 'zod';
99

1010
import { useAppStore } from '@/store';
1111

12-
export type IdentificationFormProps = {
12+
type IdentificationFormProps = {
1313
onSubmit: (data: { id: string }) => Promisable<void>;
1414
};
1515

apps/web/src/components/NavButton/NavButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useNavigate } from 'react-router-dom';
55

66
import type { NavItem } from '@/hooks/useNavItems';
77

8-
export type NavButtonProps = NavItem & {
8+
type NavButtonProps = NavItem & {
99
activeClassName?: string;
1010
className?: string;
1111
isActive: boolean;

apps/web/src/components/PageHeader/PageHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import { Separator } from '@douglasneuroinformatics/libui/components';
44
import { cn } from '@douglasneuroinformatics/libui/utils';
55

6-
export type PageHeaderProps = {
6+
type PageHeaderProps = {
77
children: React.ReactNode;
88
className?: string;
99
};

apps/web/src/features/about/components/InfoBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { TimeValue } from './TimeValue';
22

3-
export type InfoBlockProps = {
3+
type InfoBlockProps = {
44
items: {
55
[key: string]: string;
66
};

apps/web/src/features/about/components/TimeValue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useCallback, useRef, useState } from 'react';
33
import { parseDuration } from '@douglasneuroinformatics/libjs';
44
import { useInterval } from '@douglasneuroinformatics/libui/hooks';
55

6-
export type TimeValueProps = {
6+
type TimeValueProps = {
77
value: number;
88
};
99

apps/web/src/features/admin/components/AppSettingsForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { SetupState, UpdateSetupStateData } from '@opendatacapture/schemas/
44
import type { Promisable, SetNonNullable } from 'type-fest';
55
import { z } from 'zod';
66

7-
export type AppSettingsFormProps = {
7+
type AppSettingsFormProps = {
88
initialValues: SetupState;
99
onSubmit: (data: UpdateSetupStateData) => Promisable<any>;
1010
};

apps/web/src/features/auth/components/DemoBanner/DemoBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { DEMO_USERS } from '@opendatacapture/demo';
55
import type { LoginCredentials } from '@opendatacapture/schemas/auth';
66
import { InfoIcon, LogInIcon } from 'lucide-react';
77

8-
export type DemoBannerProps = {
8+
type DemoBannerProps = {
99
onLogin: (credentials: LoginCredentials) => void;
1010
};
1111

apps/web/src/features/auth/components/LoginForm/LoginForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useTranslation } from '@douglasneuroinformatics/libui/hooks';
55
import type { LoginCredentials } from '@opendatacapture/schemas/auth';
66
import { z } from 'zod';
77

8-
export type LoginFormProps = {
8+
type LoginFormProps = {
99
onSubmit: (credentials: LoginCredentials) => void;
1010
};
1111

apps/web/src/features/contact/components/ContactForm/ContactForm.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Form } from '@douglasneuroinformatics/libui/components';
22
import { useTranslation } from '@douglasneuroinformatics/libui/hooks';
33
import { z } from 'zod';
44

5-
export type ContactFormData = {
5+
type ContactFormData = {
66
contactReason: 'bug' | 'feedback' | 'other' | 'request';
77
message: string;
88
};
99

10-
export type ContactFormProps = {
10+
type ContactFormProps = {
1111
onSubmit: (data: ContactFormData) => void;
1212
};
1313

@@ -42,3 +42,5 @@ export const ContactForm = ({ onSubmit }: ContactFormProps) => {
4242
/>
4343
);
4444
};
45+
46+
export type { ContactFormData };

0 commit comments

Comments
 (0)