Skip to content

Commit 9c75b72

Browse files
committed
refactor: update imports to use 'type' for TypeScript types in various components
1 parent 8581179 commit 9c75b72

11 files changed

Lines changed: 11 additions & 11 deletions

File tree

apps/frontend/src/app/(content)/search/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Skeleton from 'react-loading-skeleton';
1717
import { create } from 'zustand';
1818

1919
import { UPLOAD_CONSTANTS, SEARCH_FEATURES, INSTRUMENTS } from '@nbw/config';
20-
import { SongPreviewDtoType } from '@nbw/database';
20+
import type { SongPreviewDtoType } from '@nbw/database';
2121
import axiosInstance from '@web/lib/axios';
2222
import LoadMoreButton from '@web/modules/browse/components/client/LoadMoreButton';
2323
import SongCard from '@web/modules/browse/components/SongCard';

apps/frontend/src/app/(content)/song/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Metadata } from 'next';
22
import { cookies } from 'next/headers';
33

4-
import { SongViewDtoType } from '@nbw/database';
4+
import type { SongViewDtoType } from '@nbw/database';
55
import axios from '@web/lib/axios';
66
import { SongPage } from '@web/modules/song/components/SongPage';
77

apps/frontend/src/modules/browse/components/SongCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
55
import Link from 'next/link';
66
import Skeleton from 'react-loading-skeleton';
77

8-
import { SongPreviewDtoType } from '@nbw/database';
8+
import type { SongPreviewDtoType } from '@nbw/database';
99
import { formatDuration, formatTimeAgo } from '@web/modules/shared/util/format';
1010

1111
import SongThumbnail from '../../shared/components/layout/SongThumbnail';

apps/frontend/src/modules/browse/components/client/context/FeaturedSongs.context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
44
import { create } from 'zustand';
55

66
import { TIMESPANS } from '@nbw/config';
7-
import { type FeaturedSongsDto, type SongPreviewDto } from '@nbw/database';
7+
import type { FeaturedSongsDto, SongPreviewDto } from '@nbw/database';
88

99
type TimespanType = (typeof TIMESPANS)[number];
1010

apps/frontend/src/modules/browse/components/client/context/HomePage.context.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 { FeaturedSongsDtoType, SongPreviewDtoType } from '@nbw/database';
3+
import type { FeaturedSongsDtoType, SongPreviewDtoType } from '@nbw/database';
44

55
import {
66
FeaturedSongsProvider,

apps/frontend/src/modules/browse/components/client/context/RecentSongs.context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useEffect } from 'react';
44
import { create } from 'zustand';
55

6-
import { PageDto, SongPreviewDtoType } from '@nbw/database';
6+
import type { PageDto, SongPreviewDtoType } from '@nbw/database';
77
import axiosInstance from '@web/lib/axios';
88

99
interface RecentSongsState {

apps/frontend/src/modules/my-songs/components/client/SongRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
88
import Link from 'next/link';
99
import Skeleton from 'react-loading-skeleton';
1010

11-
import { SongPreviewDtoType } from '@nbw/database';
11+
import type { SongPreviewDtoType } from '@nbw/database';
1212
import SongThumbnail from '@web/modules/shared/components/layout/SongThumbnail';
1313
import { formatDuration } from '@web/modules/shared/util/format';
1414

apps/frontend/src/modules/shared/components/layout/RandomSongButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { faDice } from '@fortawesome/free-solid-svg-icons';
44
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
55
import { useRouter } from 'next/navigation';
66

7-
import { PageDto, SongPreviewDto } from '@nbw/database';
7+
import type { PageDto, SongPreviewDto } from '@nbw/database';
88
import axios from '@web/lib/axios';
99

1010
import { MusicalNote } from './MusicalNote';

apps/frontend/src/modules/song-edit/components/client/EditSongPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UploadSongDtoType } from '@nbw/database';
1+
import type { UploadSongDtoType } from '@nbw/database';
22
import axiosInstance from '@web/lib/axios';
33
import {
44
getTokenServer,

apps/frontend/src/modules/song/components/client/DownloadSongModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { useState } from 'react';
44

5-
import { SongViewDtoType } from '@nbw/database';
5+
import type { SongViewDtoType } from '@nbw/database';
66
import { DownloadPopupAdSlot } from '@web/modules/shared/components/client/ads/AdSlots';
77
import GenericModal from '@web/modules/shared/components/client/GenericModal';
88

0 commit comments

Comments
 (0)