diff --git a/src/components/Blocklist/index.tsx b/src/components/Blocklist/index.tsx index daacf339..c25eb506 100644 --- a/src/components/Blocklist/index.tsx +++ b/src/components/Blocklist/index.tsx @@ -10,7 +10,7 @@ import useDebouncedState from '@app/hooks/useDebouncedState'; import { useUpdateQueryParams } from '@app/hooks/useUpdateQueryParams'; import { Permission, useUser } from '@app/hooks/useUser'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import { ChevronLeftIcon, @@ -90,7 +90,7 @@ const Blocklist = () => { // check if there's no data and no errors in the table // so as to show a spinner inside the table and not refresh the whole component if (!data && error) { - return ; + return ; } const searchItem = (e: ChangeEvent) => { diff --git a/src/components/CollectionDetails/index.tsx b/src/components/CollectionDetails/index.tsx index c4f40714..e1e6fc2d 100644 --- a/src/components/CollectionDetails/index.tsx +++ b/src/components/CollectionDetails/index.tsx @@ -9,7 +9,7 @@ import TitleCard from '@app/components/TitleCard'; import useSettings from '@app/hooks/useSettings'; import { Permission, useUser } from '@app/hooks/useUser'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import { refreshIntervalHelper } from '@app/utils/refreshIntervalHelper'; import { ArrowDownTrayIcon } from '@heroicons/react/24/outline'; @@ -91,7 +91,7 @@ const CollectionDetails = ({ collection }: CollectionDetailsProps) => { } if (!data) { - return ; + return ; } let collectionStatus = MediaStatus.UNKNOWN; diff --git a/src/components/Discover/DiscoverMovieGenre/index.tsx b/src/components/Discover/DiscoverMovieGenre/index.tsx index bbcbafdc..4d43fe2d 100644 --- a/src/components/Discover/DiscoverMovieGenre/index.tsx +++ b/src/components/Discover/DiscoverMovieGenre/index.tsx @@ -3,7 +3,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { MovieResult } from '@server/models/Search'; import { useRouter } from 'next/router'; @@ -31,7 +31,7 @@ const DiscoverMovieGenre = () => { ); if (error) { - return ; + return ; } const title = isLoadingInitialData diff --git a/src/components/Discover/DiscoverMovieKeyword/index.tsx b/src/components/Discover/DiscoverMovieKeyword/index.tsx index 19d71da9..abb7fa1b 100644 --- a/src/components/Discover/DiscoverMovieKeyword/index.tsx +++ b/src/components/Discover/DiscoverMovieKeyword/index.tsx @@ -3,7 +3,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover, { encodeURIExtraParams } from '@app/hooks/useDiscover'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TmdbKeyword } from '@server/api/themoviedb/interfaces'; import type { MovieResult } from '@server/models/Search'; @@ -35,7 +35,7 @@ const DiscoverMovieKeyword = () => { ); if (error) { - return ; + return ; } const title = isLoadingInitialData diff --git a/src/components/Discover/DiscoverMovieLanguage/index.tsx b/src/components/Discover/DiscoverMovieLanguage/index.tsx index ae7ad173..5d068aec 100644 --- a/src/components/Discover/DiscoverMovieLanguage/index.tsx +++ b/src/components/Discover/DiscoverMovieLanguage/index.tsx @@ -3,7 +3,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { MovieResult } from '@server/models/Search'; import { useRouter } from 'next/router'; @@ -37,7 +37,7 @@ const DiscoverMovieLanguage = () => { >(`/api/v1/discover/movies/language/${router.query.language}`); if (error) { - return ; + return ; } const title = isLoadingInitialData diff --git a/src/components/Discover/DiscoverMovies/index.tsx b/src/components/Discover/DiscoverMovies/index.tsx index 4f67c205..cc96b7c6 100644 --- a/src/components/Discover/DiscoverMovies/index.tsx +++ b/src/components/Discover/DiscoverMovies/index.tsx @@ -10,7 +10,7 @@ import { import FilterSlideover from '@app/components/Discover/FilterSlideover'; import useDiscover from '@app/hooks/useDiscover'; import { useUpdateQueryParams } from '@app/hooks/useUpdateQueryParams'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import { BarsArrowDownIcon, FunnelIcon } from '@heroicons/react/24/solid'; import type { SortOptions as TMDBSortOptions } from '@server/api/themoviedb'; @@ -66,7 +66,7 @@ const DiscoverMovies = () => { const [showFilters, setShowFilters] = useState(false); if (error) { - return ; + return ; } const title = intl.formatMessage(messages.discovermovies); diff --git a/src/components/Discover/DiscoverNetwork/index.tsx b/src/components/Discover/DiscoverNetwork/index.tsx index a95b6f2d..4a57588a 100644 --- a/src/components/Discover/DiscoverNetwork/index.tsx +++ b/src/components/Discover/DiscoverNetwork/index.tsx @@ -4,7 +4,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TvNetwork } from '@server/models/common'; import type { TvResult } from '@server/models/Search'; @@ -33,7 +33,7 @@ const DiscoverTvNetwork = () => { ); if (error) { - return ; + return ; } const title = isLoadingInitialData diff --git a/src/components/Discover/DiscoverStudio/index.tsx b/src/components/Discover/DiscoverStudio/index.tsx index 3f97f245..2e185860 100644 --- a/src/components/Discover/DiscoverStudio/index.tsx +++ b/src/components/Discover/DiscoverStudio/index.tsx @@ -4,7 +4,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { ProductionCompany } from '@server/models/common'; import type { MovieResult } from '@server/models/Search'; @@ -33,7 +33,7 @@ const DiscoverMovieStudio = () => { ); if (error) { - return ; + return ; } const title = isLoadingInitialData diff --git a/src/components/Discover/DiscoverTv/index.tsx b/src/components/Discover/DiscoverTv/index.tsx index 9d11eeff..c5611c31 100644 --- a/src/components/Discover/DiscoverTv/index.tsx +++ b/src/components/Discover/DiscoverTv/index.tsx @@ -10,7 +10,7 @@ import { import FilterSlideover from '@app/components/Discover/FilterSlideover'; import useDiscover from '@app/hooks/useDiscover'; import { useUpdateQueryParams } from '@app/hooks/useUpdateQueryParams'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import { BarsArrowDownIcon, FunnelIcon } from '@heroicons/react/24/solid'; import type { SortOptions as TMDBSortOptions } from '@server/api/themoviedb'; @@ -64,7 +64,7 @@ const DiscoverTv = () => { }); if (error) { - return ; + return ; } const title = intl.formatMessage(messages.discovertv); diff --git a/src/components/Discover/DiscoverTvGenre/index.tsx b/src/components/Discover/DiscoverTvGenre/index.tsx index bc056a19..aea8aa77 100644 --- a/src/components/Discover/DiscoverTvGenre/index.tsx +++ b/src/components/Discover/DiscoverTvGenre/index.tsx @@ -3,7 +3,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TvResult } from '@server/models/Search'; import { useRouter } from 'next/router'; @@ -31,7 +31,7 @@ const DiscoverTvGenre = () => { ); if (error) { - return ; + return ; } const title = isLoadingInitialData diff --git a/src/components/Discover/DiscoverTvKeyword/index.tsx b/src/components/Discover/DiscoverTvKeyword/index.tsx index 9128af47..137ae024 100644 --- a/src/components/Discover/DiscoverTvKeyword/index.tsx +++ b/src/components/Discover/DiscoverTvKeyword/index.tsx @@ -3,7 +3,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover, { encodeURIExtraParams } from '@app/hooks/useDiscover'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TmdbKeyword } from '@server/api/themoviedb/interfaces'; import type { TvResult } from '@server/models/Search'; @@ -35,7 +35,7 @@ const DiscoverTvKeyword = () => { ); if (error) { - return ; + return ; } const title = isLoadingInitialData diff --git a/src/components/Discover/DiscoverTvLanguage/index.tsx b/src/components/Discover/DiscoverTvLanguage/index.tsx index f8f99f57..b00c1b7c 100644 --- a/src/components/Discover/DiscoverTvLanguage/index.tsx +++ b/src/components/Discover/DiscoverTvLanguage/index.tsx @@ -3,7 +3,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TvResult } from '@server/models/Search'; import { useRouter } from 'next/router'; @@ -37,7 +37,7 @@ const DiscoverTvLanguage = () => { >(`/api/v1/discover/tv/language/${router.query.language}`); if (error) { - return ; + return ; } const title = isLoadingInitialData diff --git a/src/components/Discover/DiscoverTvUpcoming.tsx b/src/components/Discover/DiscoverTvUpcoming.tsx index 67cdb374..eea2b9d7 100644 --- a/src/components/Discover/DiscoverTvUpcoming.tsx +++ b/src/components/Discover/DiscoverTvUpcoming.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TvResult } from '@server/models/Search'; import { useIntl } from 'react-intl'; @@ -25,7 +25,7 @@ const DiscoverTvUpcoming = () => { } = useDiscover('/api/v1/discover/tv/upcoming'); if (error) { - return ; + return ; } return ( diff --git a/src/components/Discover/DiscoverWatchlist/index.tsx b/src/components/Discover/DiscoverWatchlist/index.tsx index 01f754a4..f0846a43 100644 --- a/src/components/Discover/DiscoverWatchlist/index.tsx +++ b/src/components/Discover/DiscoverWatchlist/index.tsx @@ -3,7 +3,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; import { useUser } from '@app/hooks/useUser'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { WatchlistItem } from '@server/interfaces/api/discoverInterfaces'; import Link from 'next/link'; @@ -43,7 +43,7 @@ const DiscoverWatchlist = () => { ); if (error) { - return ; + return ; } const title = intl.formatMessage( diff --git a/src/components/Discover/MovieGenreList/index.tsx b/src/components/Discover/MovieGenreList/index.tsx index 2e1ce7b4..b5bdec14 100644 --- a/src/components/Discover/MovieGenreList/index.tsx +++ b/src/components/Discover/MovieGenreList/index.tsx @@ -3,7 +3,7 @@ import LoadingSpinner from '@app/components/Common/LoadingSpinner'; import PageTitle from '@app/components/Common/PageTitle'; import { genreColorMap } from '@app/components/Discover/constants'; import GenreCard from '@app/components/GenreCard'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { GenreSliderItem } from '@server/interfaces/api/discoverInterfaces'; import { useIntl } from 'react-intl'; @@ -24,7 +24,7 @@ const MovieGenreList = () => { } if (!data) { - return ; + return ; } return ( diff --git a/src/components/Discover/Trending.tsx b/src/components/Discover/Trending.tsx index d8942cab..5abd9e8e 100644 --- a/src/components/Discover/Trending.tsx +++ b/src/components/Discover/Trending.tsx @@ -3,7 +3,7 @@ import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import { CircleStackIcon, FunnelIcon } from '@heroicons/react/24/solid'; import type { @@ -42,7 +42,7 @@ const Trending = () => { ); if (error) { - return ; + return ; } return ( diff --git a/src/components/Discover/TvGenreList/index.tsx b/src/components/Discover/TvGenreList/index.tsx index 03f17ad8..c33d3722 100644 --- a/src/components/Discover/TvGenreList/index.tsx +++ b/src/components/Discover/TvGenreList/index.tsx @@ -3,7 +3,7 @@ import LoadingSpinner from '@app/components/Common/LoadingSpinner'; import PageTitle from '@app/components/Common/PageTitle'; import { genreColorMap } from '@app/components/Discover/constants'; import GenreCard from '@app/components/GenreCard'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { GenreSliderItem } from '@server/interfaces/api/discoverInterfaces'; import { useIntl } from 'react-intl'; @@ -24,7 +24,7 @@ const TvGenreList = () => { } if (!data) { - return ; + return ; } return ( diff --git a/src/components/Discover/Upcoming.tsx b/src/components/Discover/Upcoming.tsx index a464158a..81d04559 100644 --- a/src/components/Discover/Upcoming.tsx +++ b/src/components/Discover/Upcoming.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { MovieResult } from '@server/models/Search'; import { useIntl } from 'react-intl'; @@ -25,7 +25,7 @@ const UpcomingMovies = () => { } = useDiscover('/api/v1/discover/movies/upcoming'); if (error) { - return ; + return ; } return ( diff --git a/src/components/MovieDetails/MovieCast/index.tsx b/src/components/MovieDetails/MovieCast/index.tsx index 37f0b74d..ad73c932 100644 --- a/src/components/MovieDetails/MovieCast/index.tsx +++ b/src/components/MovieDetails/MovieCast/index.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import LoadingSpinner from '@app/components/Common/LoadingSpinner'; import PageTitle from '@app/components/Common/PageTitle'; import PersonCard from '@app/components/PersonCard'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { MovieDetails } from '@server/models/Movie'; import Link from 'next/link'; @@ -26,7 +26,7 @@ const MovieCast = () => { } if (!data) { - return ; + return ; } return ( diff --git a/src/components/MovieDetails/MovieCrew/index.tsx b/src/components/MovieDetails/MovieCrew/index.tsx index 94548767..cf9bc7f6 100644 --- a/src/components/MovieDetails/MovieCrew/index.tsx +++ b/src/components/MovieDetails/MovieCrew/index.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import LoadingSpinner from '@app/components/Common/LoadingSpinner'; import PageTitle from '@app/components/Common/PageTitle'; import PersonCard from '@app/components/PersonCard'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { MovieDetails } from '@server/models/Movie'; import Link from 'next/link'; @@ -26,7 +26,7 @@ const MovieCrew = () => { } if (!data) { - return ; + return ; } return ( diff --git a/src/components/MovieDetails/MovieRecommendations.tsx b/src/components/MovieDetails/MovieRecommendations.tsx index 21cd7b30..ba8f7dd0 100644 --- a/src/components/MovieDetails/MovieRecommendations.tsx +++ b/src/components/MovieDetails/MovieRecommendations.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { MovieDetails } from '@server/models/Movie'; import type { MovieResult } from '@server/models/Search'; @@ -34,7 +34,7 @@ const MovieRecommendations = () => { ); if (error) { - return ; + return ; } return ( diff --git a/src/components/MovieDetails/MovieSimilar.tsx b/src/components/MovieDetails/MovieSimilar.tsx index e93c6b1c..e82b4fe8 100644 --- a/src/components/MovieDetails/MovieSimilar.tsx +++ b/src/components/MovieDetails/MovieSimilar.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { MovieDetails } from '@server/models/Movie'; import type { MovieResult } from '@server/models/Search'; @@ -32,7 +32,7 @@ const MovieSimilar = () => { } = useDiscover(`/api/v1/movie/${router.query.movieId}/similar`); if (error) { - return ; + return ; } return ( diff --git a/src/components/PersonDetails/index.tsx b/src/components/PersonDetails/index.tsx index 1b22252f..fe9e8365 100644 --- a/src/components/PersonDetails/index.tsx +++ b/src/components/PersonDetails/index.tsx @@ -5,7 +5,7 @@ import LoadingSpinner from '@app/components/Common/LoadingSpinner'; import PageTitle from '@app/components/Common/PageTitle'; import TitleCard from '@app/components/TitleCard'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import { CircleStackIcon } from '@heroicons/react/24/solid'; import type { PersonCombinedCreditsResponse } from '@server/interfaces/api/personInterfaces'; @@ -91,7 +91,7 @@ const PersonDetails = () => { } if (!data) { - return ; + return ; } const personAttributes: string[] = []; diff --git a/src/components/Search/index.tsx b/src/components/Search/index.tsx index 96d41ced..e5a54180 100644 --- a/src/components/Search/index.tsx +++ b/src/components/Search/index.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { MovieResult, @@ -38,7 +38,7 @@ const Search = () => { ); if (error) { - return ; + return ; } return ( diff --git a/src/components/Settings/SettingsAbout/index.tsx b/src/components/Settings/SettingsAbout/index.tsx index 7bd38d47..f5161fca 100644 --- a/src/components/Settings/SettingsAbout/index.tsx +++ b/src/components/Settings/SettingsAbout/index.tsx @@ -5,7 +5,7 @@ import LoadingSpinner from '@app/components/Common/LoadingSpinner'; import PageTitle from '@app/components/Common/PageTitle'; import Releases from '@app/components/Settings/SettingsAbout/Releases'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { SettingsAboutResponse, @@ -46,7 +46,7 @@ const SettingsAbout = () => { } if (!data) { - return ; + return ; } return ( diff --git a/src/components/Settings/SettingsLogs/index.tsx b/src/components/Settings/SettingsLogs/index.tsx index 24617b9b..840cfece 100644 --- a/src/components/Settings/SettingsLogs/index.tsx +++ b/src/components/Settings/SettingsLogs/index.tsx @@ -8,7 +8,7 @@ import Tooltip from '@app/components/Common/Tooltip'; import useDebouncedState from '@app/hooks/useDebouncedState'; import { useUpdateQueryParams } from '@app/hooks/useUpdateQueryParams'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import { Transition } from '@headlessui/react'; import { @@ -128,7 +128,7 @@ const SettingsLogs = () => { // check if there's no data and no errors in the table // so as to show a spinner inside the table and not refresh the whole component if (!data && error) { - return ; + return ; } const hasNextPage = data?.pageInfo.pages ?? 0 > pageIndex + 1; diff --git a/src/components/TvDetails/TvCast/index.tsx b/src/components/TvDetails/TvCast/index.tsx index da7df1cd..d2cf8049 100644 --- a/src/components/TvDetails/TvCast/index.tsx +++ b/src/components/TvDetails/TvCast/index.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import LoadingSpinner from '@app/components/Common/LoadingSpinner'; import PageTitle from '@app/components/Common/PageTitle'; import PersonCard from '@app/components/PersonCard'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TvDetails } from '@server/models/Tv'; import Link from 'next/link'; @@ -24,7 +24,7 @@ const TvCast = () => { } if (!data) { - return ; + return ; } return ( diff --git a/src/components/TvDetails/TvCrew/index.tsx b/src/components/TvDetails/TvCrew/index.tsx index 213497e1..7bb7d68e 100644 --- a/src/components/TvDetails/TvCrew/index.tsx +++ b/src/components/TvDetails/TvCrew/index.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import LoadingSpinner from '@app/components/Common/LoadingSpinner'; import PageTitle from '@app/components/Common/PageTitle'; import PersonCard from '@app/components/PersonCard'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TvDetails } from '@server/models/Tv'; import Link from 'next/link'; @@ -24,7 +24,7 @@ const TvCrew = () => { } if (!data) { - return ; + return ; } return ( diff --git a/src/components/TvDetails/TvRecommendations.tsx b/src/components/TvDetails/TvRecommendations.tsx index 36bc2211..e0833bf2 100644 --- a/src/components/TvDetails/TvRecommendations.tsx +++ b/src/components/TvDetails/TvRecommendations.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TvResult } from '@server/models/Search'; import type { TvDetails } from '@server/models/Tv'; @@ -30,7 +30,7 @@ const TvRecommendations = () => { } = useDiscover(`/api/v1/tv/${router.query.tvId}/recommendations`); if (error) { - return ; + return ; } return ( diff --git a/src/components/TvDetails/TvSimilar.tsx b/src/components/TvDetails/TvSimilar.tsx index bd524f9c..38b79e62 100644 --- a/src/components/TvDetails/TvSimilar.tsx +++ b/src/components/TvDetails/TvSimilar.tsx @@ -2,7 +2,7 @@ import Header from '@app/components/Common/Header'; import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; import useDiscover from '@app/hooks/useDiscover'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TvResult } from '@server/models/Search'; import type { TvDetails } from '@server/models/Tv'; @@ -30,7 +30,7 @@ const TvSimilar = () => { } = useDiscover(`/api/v1/tv/${router.query.tvId}/similar`); if (error) { - return ; + return ; } return ( diff --git a/src/components/TvDetails/index.tsx b/src/components/TvDetails/index.tsx index 6165234c..9f510182 100644 --- a/src/components/TvDetails/index.tsx +++ b/src/components/TvDetails/index.tsx @@ -30,7 +30,7 @@ import useLocale from '@app/hooks/useLocale'; import useSettings from '@app/hooks/useSettings'; import { Permission, UserType, useUser } from '@app/hooks/useUser'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import { sortCrewPriority } from '@app/utils/creditHelpers'; import defineMessages from '@app/utils/defineMessages'; import { refreshIntervalHelper } from '@app/utils/refreshIntervalHelper'; @@ -174,7 +174,7 @@ const TvDetails = ({ tv }: TvDetailsProps) => { } if (!data) { - return ; + return ; } const mediaLinks: PlayButtonLink[] = []; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx index a57a3f5d..b6d10fc1 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx @@ -8,7 +8,7 @@ import type { SettingsRoute } from '@app/components/Common/SettingsTabs'; import SettingsTabs from '@app/components/Common/SettingsTabs'; import { useUser } from '@app/hooks/useUser'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import { CloudIcon, EnvelopeIcon } from '@heroicons/react/24/solid'; import type { UserSettingsNotificationsResponse } from '@server/interfaces/api/userSettingsInterfaces'; @@ -124,7 +124,7 @@ const UserNotificationSettings = ({ } if (!data) { - return ; + return ; } return ( diff --git a/src/components/UserProfile/UserSettings/index.tsx b/src/components/UserProfile/UserSettings/index.tsx index cada6e41..8df54eb0 100644 --- a/src/components/UserProfile/UserSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/index.tsx @@ -7,7 +7,7 @@ import ProfileHeader from '@app/components/UserProfile/ProfileHeader'; import useSettings from '@app/hooks/useSettings'; import { useUser } from '@app/hooks/useUser'; import globalMessages from '@app/i18n/globalMessages'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { UserSettingsNotificationsResponse } from '@server/interfaces/api/userSettingsInterfaces'; import { hasPermission, Permission } from '@server/lib/permissions'; @@ -44,7 +44,7 @@ const UserSettings = ({ children }: UserSettingsProps) => { } if (!user) { - return ; + return ; } const settingsRoutes: SettingsRoute[] = [ diff --git a/src/components/UserProfile/index.tsx b/src/components/UserProfile/index.tsx index 8b9ce43d..64594f83 100644 --- a/src/components/UserProfile/index.tsx +++ b/src/components/UserProfile/index.tsx @@ -7,7 +7,7 @@ import Slider from '@app/components/Slider'; import TmdbTitleCard from '@app/components/TitleCard/TmdbTitleCard'; import ProfileHeader from '@app/components/UserProfile/ProfileHeader'; import { Permission, UserType, useUser } from '@app/hooks/useUser'; -import Error from '@app/pages/_error'; +import ErrorPage from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import { ArrowRightCircleIcon } from '@heroicons/react/24/outline'; import type { WatchlistResponse } from '@server/interfaces/api/discoverInterfaces'; @@ -116,7 +116,7 @@ const UserProfile = () => { } if (!user) { - return ; + return ; } const watchlistSliderTitle = intl.formatMessage( diff --git a/src/pages/_error.tsx b/src/pages/_error.tsx index 6838a1b4..4057eca0 100644 --- a/src/pages/_error.tsx +++ b/src/pages/_error.tsx @@ -19,7 +19,7 @@ const messages = defineMessages('pages', { returnHome: 'Return Home', }); -const Error: NextPage = ({ statusCode }) => { +const ErrorPage: NextPage = ({ statusCode }) => { const intl = useIntl(); const getErrorMessage = (statusCode?: number) => { @@ -53,7 +53,7 @@ const Error: NextPage = ({ statusCode }) => { ); }; -Error.getInitialProps = async ({ res, err }): Promise => { +ErrorPage.getInitialProps = async ({ res, err }): Promise => { // Apologies for how gross ternary is but this is just temporary. Honestly, // blame the nextjs docs let statusCode: Undefinable; @@ -66,4 +66,4 @@ Error.getInitialProps = async ({ res, err }): Promise => { return { statusCode }; }; -export default Error; +export default ErrorPage;