Skip to content

Commit 5d37a2a

Browse files
committed
chore: update import to use type
1 parent 46c1b88 commit 5d37a2a

File tree

20 files changed

+34
-33
lines changed

20 files changed

+34
-33
lines changed

src/api/services/Auth.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { makeRequest } from '@/lib';
22

3-
import { AuthLoginRequest } from '@/api/models/AuthLoginRequest';
4-
import { AuthLoginResponse } from '@/api/models/AuthLoginResponse';
3+
import type { AuthLoginRequest } from '@/api/models/AuthLoginRequest';
4+
import type { AuthLoginResponse } from '@/api/models/AuthLoginResponse';
55

66
const ACCESS_TOKEN_KEY = 'accessToken';
77

src/app/[locale]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReactElement, ReactNode } from 'react';
1+
import type { ReactElement, ReactNode } from 'react';
22
import { notFound } from 'next/navigation';
33
import { hasLocale, NextIntlClientProvider } from 'next-intl';
44

src/app/[locale]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { ReactElement } from 'react';
1+
import type { ReactElement } from 'react';
22
import { useTranslations } from 'next-intl';
33

4-
import { useConfig } from '@/hooks';
5-
64
import { Button, Icon, Text } from '@/components/common';
75

6+
import { useConfig } from '@/hooks';
7+
88
const HomePage = (): ReactElement => {
99
const t = useTranslations();
1010

src/app/global-error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { ReactElement } from 'react';
3+
import type { ReactElement } from 'react';
44

55
import { DEFAULT_LOCALE } from '@/constants';
66

src/app/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { ReactElement } from 'react';
3+
import type { ReactElement } from 'react';
44

55
import { DEFAULT_LOCALE } from '@/constants';
66

src/components/common/Button/Button.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
import { ReactElement } from 'react';
1+
import type { ReactElement } from 'react';
22

33
import clsx from 'clsx';
44

5-
import {
5+
import type {
66
ButtonProps,
77
ButtonSize,
88
} from '@/components/common/Button/Button.types';
9-
import { Text } from '@/components/common/Text/Text';
10-
import { TextVariant } from '@/components/common/Text/Text.types';
11-
9+
import type { TextVariant } from '@/components/common/Text/Text.types';
1210
import styles from '@/components/common/Button/Button.module.scss';
11+
import { Text } from '@/components/common/Text/Text';
1312

1413
const buttonSizeTextVariantMap = {
1514
small: 'footnoteMedium',

src/components/common/Button/Button.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ButtonHTMLAttributes } from 'react';
1+
import type { ButtonHTMLAttributes } from 'react';
22

33
export type ButtonSize = 'small' | 'medium' | 'large';
44
export type ButtonType = 'filled' | 'outlined' | 'text';

src/components/common/Icon/Icon.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client';
22

3-
import { ReactElement, useMemo } from 'react';
3+
import type { ReactElement } from 'react';
4+
import { useMemo } from 'react';
45
import dynamic from 'next/dynamic';
56

67
import type {

src/components/common/Text/Text.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import clsx from 'clsx';
21
import type { ReactElement } from 'react';
32

4-
import type { TextProps } from '@/components/common/Text/Text.types';
3+
import clsx from 'clsx';
54

5+
import type { TextProps } from '@/components/common/Text/Text.types';
66
import styles from '@/components/common/Text/Text.module.scss';
77

88
export const Text = ({

src/components/common/Text/Text.types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { JSX } from 'react';
1+
import type { JSX } from 'react';
22

3-
import { ColorPalette } from '@/types';
3+
import type { ColorPalette } from '@/types';
44

55
type Color = {
66
[K in keyof ColorPalette]: `${K}-${Extract<keyof ColorPalette[K], string | number>}`;

0 commit comments

Comments
 (0)