diff --git a/src/components/CollectionDetails/index.tsx b/src/components/CollectionDetails/index.tsx index cf5990fce..8cfbf48cd 100644 --- a/src/components/CollectionDetails/index.tsx +++ b/src/components/CollectionDetails/index.tsx @@ -2,7 +2,6 @@ import { DownloadIcon } from '@heroicons/react/outline'; import { uniq } from 'lodash'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/Common/CachedImage/index.tsx b/src/components/Common/CachedImage/index.tsx index 8372caba1..5bc93dd73 100644 --- a/src/components/Common/CachedImage/index.tsx +++ b/src/components/Common/CachedImage/index.tsx @@ -1,6 +1,5 @@ import type { ImageProps } from 'next/image'; import Image from 'next/image'; - import useSettings from '../../../hooks/useSettings'; /** diff --git a/src/components/Common/SensitiveInput/index.tsx b/src/components/Common/SensitiveInput/index.tsx index 78cdcaccb..6652f5519 100644 --- a/src/components/Common/SensitiveInput/index.tsx +++ b/src/components/Common/SensitiveInput/index.tsx @@ -1,6 +1,5 @@ import { EyeIcon, EyeOffIcon } from '@heroicons/react/solid'; import { Field } from 'formik'; - import { useState } from 'react'; interface CustomInputProps extends React.ComponentProps<'input'> { diff --git a/src/components/Common/SettingsTabs/index.tsx b/src/components/Common/SettingsTabs/index.tsx index da69feda2..060aef772 100644 --- a/src/components/Common/SettingsTabs/index.tsx +++ b/src/components/Common/SettingsTabs/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import type { Permission } from '../../../../server/lib/permissions'; import { hasPermission } from '../../../../server/lib/permissions'; import { useUser } from '../../../hooks/useUser'; diff --git a/src/components/Common/SlideOver/index.tsx b/src/components/Common/SlideOver/index.tsx index 05fa31742..542ea8df2 100644 --- a/src/components/Common/SlideOver/index.tsx +++ b/src/components/Common/SlideOver/index.tsx @@ -1,6 +1,5 @@ /* eslint-disable jsx-a11y/click-events-have-key-events */ import { XIcon } from '@heroicons/react/outline'; - import { useEffect, useRef, useState } from 'react'; import ReactDOM from 'react-dom'; import { useLockBodyScroll } from '../../../hooks/useLockBodyScroll'; diff --git a/src/components/Discover/MovieGenreSlider/index.tsx b/src/components/Discover/MovieGenreSlider/index.tsx index 29234635c..4623efb07 100644 --- a/src/components/Discover/MovieGenreSlider/index.tsx +++ b/src/components/Discover/MovieGenreSlider/index.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { GenreSliderItem } from '../../../../server/interfaces/api/discoverInterfaces'; diff --git a/src/components/Discover/TvGenreSlider/index.tsx b/src/components/Discover/TvGenreSlider/index.tsx index e2bdd1696..a0e93ab36 100644 --- a/src/components/Discover/TvGenreSlider/index.tsx +++ b/src/components/Discover/TvGenreSlider/index.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { GenreSliderItem } from '../../../../server/interfaces/api/discoverInterfaces'; diff --git a/src/components/Discover/index.tsx b/src/components/Discover/index.tsx index 46979609e..d732871ba 100644 --- a/src/components/Discover/index.tsx +++ b/src/components/Discover/index.tsx @@ -1,6 +1,5 @@ import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MediaResultsResponse } from '../../../server/interfaces/api/mediaInterfaces'; diff --git a/src/components/IssueBlock/index.tsx b/src/components/IssueBlock/index.tsx index 151523b8b..b33fdeae7 100644 --- a/src/components/IssueBlock/index.tsx +++ b/src/components/IssueBlock/index.tsx @@ -5,7 +5,6 @@ import { UserIcon, } from '@heroicons/react/solid'; import Link from 'next/link'; - import { useIntl } from 'react-intl'; import type Issue from '../../../server/entity/Issue'; import { useUser } from '../../hooks/useUser'; diff --git a/src/components/IssueList/IssueItem/index.tsx b/src/components/IssueList/IssueItem/index.tsx index 2847deec6..d24193f40 100644 --- a/src/components/IssueList/IssueItem/index.tsx +++ b/src/components/IssueList/IssueItem/index.tsx @@ -1,6 +1,5 @@ import { EyeIcon } from '@heroicons/react/solid'; import Link from 'next/link'; - import { useInView } from 'react-intersection-observer'; import { defineMessages, FormattedRelativeTime, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/IssueList/index.tsx b/src/components/IssueList/index.tsx index 816ebf1f2..d171dd9a8 100644 --- a/src/components/IssueList/index.tsx +++ b/src/components/IssueList/index.tsx @@ -5,7 +5,6 @@ import { SortDescendingIcon, } from '@heroicons/react/solid'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/IssueModal/CreateIssueModal/index.tsx b/src/components/IssueModal/CreateIssueModal/index.tsx index f87577146..a746514a7 100644 --- a/src/components/IssueModal/CreateIssueModal/index.tsx +++ b/src/components/IssueModal/CreateIssueModal/index.tsx @@ -4,7 +4,6 @@ import { ArrowCircleRightIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Formik } from 'formik'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/JSONEditor/index.tsx b/src/components/JSONEditor/index.tsx index 6999c92af..4278f93e8 100644 --- a/src/components/JSONEditor/index.tsx +++ b/src/components/JSONEditor/index.tsx @@ -1,5 +1,4 @@ import type { HTMLAttributes } from 'react'; - import AceEditor from 'react-ace'; import 'ace-builds/src-noconflict/mode-json'; import 'ace-builds/src-noconflict/theme-dracula'; diff --git a/src/components/Layout/SearchInput/index.tsx b/src/components/Layout/SearchInput/index.tsx index fb2628ea9..a569d4c9e 100644 --- a/src/components/Layout/SearchInput/index.tsx +++ b/src/components/Layout/SearchInput/index.tsx @@ -1,6 +1,5 @@ import { XCircleIcon } from '@heroicons/react/outline'; import { SearchIcon } from '@heroicons/react/solid'; - import { defineMessages, useIntl } from 'react-intl'; import useSearchInput from '../../../hooks/useSearchInput'; diff --git a/src/components/Layout/VersionStatus/index.tsx b/src/components/Layout/VersionStatus/index.tsx index 5a609707a..1bdc6e470 100644 --- a/src/components/Layout/VersionStatus/index.tsx +++ b/src/components/Layout/VersionStatus/index.tsx @@ -5,7 +5,6 @@ import { ServerIcon, } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { StatusResponse } from '../../../../server/interfaces/api/settingsInterfaces'; diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index fc8422b43..60e0b5a40 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -1,7 +1,6 @@ import { MenuAlt2Icon } from '@heroicons/react/outline'; import { ArrowLeftIcon } from '@heroicons/react/solid'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import type { AvailableLocale } from '../../context/LanguageContext'; import useLocale from '../../hooks/useLocale'; diff --git a/src/components/ManageSlideOver/index.tsx b/src/components/ManageSlideOver/index.tsx index ba3cce686..f8347f4cb 100644 --- a/src/components/ManageSlideOver/index.tsx +++ b/src/components/ManageSlideOver/index.tsx @@ -2,7 +2,6 @@ import { ServerIcon, ViewListIcon } from '@heroicons/react/outline'; import { CheckCircleIcon, DocumentRemoveIcon } from '@heroicons/react/solid'; import axios from 'axios'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import { IssueStatus } from '../../../server/constants/issue'; diff --git a/src/components/MovieDetails/MovieCast/index.tsx b/src/components/MovieDetails/MovieCast/index.tsx index e096b5981..539f7c614 100644 --- a/src/components/MovieDetails/MovieCast/index.tsx +++ b/src/components/MovieDetails/MovieCast/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MovieDetails } from '../../../../server/models/Movie'; diff --git a/src/components/MovieDetails/MovieCrew/index.tsx b/src/components/MovieDetails/MovieCrew/index.tsx index 8d0e2d8c7..941bfb502 100644 --- a/src/components/MovieDetails/MovieCrew/index.tsx +++ b/src/components/MovieDetails/MovieCrew/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MovieDetails } from '../../../../server/models/Movie'; diff --git a/src/components/MovieDetails/MovieRecommendations.tsx b/src/components/MovieDetails/MovieRecommendations.tsx index aa79971e0..70441232e 100644 --- a/src/components/MovieDetails/MovieRecommendations.tsx +++ b/src/components/MovieDetails/MovieRecommendations.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MovieDetails } from '../../../server/models/Movie'; diff --git a/src/components/MovieDetails/MovieSimilar.tsx b/src/components/MovieDetails/MovieSimilar.tsx index 5b49530e0..d96ff4d44 100644 --- a/src/components/MovieDetails/MovieSimilar.tsx +++ b/src/components/MovieDetails/MovieSimilar.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { MovieDetails } from '../../../server/models/Movie'; diff --git a/src/components/MovieDetails/index.tsx b/src/components/MovieDetails/index.tsx index 9b705bcd3..54b7a0c74 100644 --- a/src/components/MovieDetails/index.tsx +++ b/src/components/MovieDetails/index.tsx @@ -16,7 +16,6 @@ import 'country-flag-icons/3x2/flags.css'; import { uniqBy } from 'lodash'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useEffect, useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/RequestButton/index.tsx b/src/components/RequestButton/index.tsx index 223278599..72b95f07c 100644 --- a/src/components/RequestButton/index.tsx +++ b/src/components/RequestButton/index.tsx @@ -5,7 +5,6 @@ import { XIcon, } from '@heroicons/react/solid'; import axios from 'axios'; - import { useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { diff --git a/src/components/RequestList/index.tsx b/src/components/RequestList/index.tsx index 2815d1e67..5ca4307d3 100644 --- a/src/components/RequestList/index.tsx +++ b/src/components/RequestList/index.tsx @@ -6,7 +6,6 @@ import { } from '@heroicons/react/solid'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/RequestModal/CollectionRequestModal.tsx b/src/components/RequestModal/CollectionRequestModal.tsx index 290b9df11..e5bc7cb83 100644 --- a/src/components/RequestModal/CollectionRequestModal.tsx +++ b/src/components/RequestModal/CollectionRequestModal.tsx @@ -1,6 +1,5 @@ import { DownloadIcon } from '@heroicons/react/outline'; import axios from 'axios'; - import { useCallback, useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/RequestModal/MovieRequestModal.tsx b/src/components/RequestModal/MovieRequestModal.tsx index cee5fa683..4e0ad1b04 100644 --- a/src/components/RequestModal/MovieRequestModal.tsx +++ b/src/components/RequestModal/MovieRequestModal.tsx @@ -1,6 +1,5 @@ import { DownloadIcon } from '@heroicons/react/outline'; import axios from 'axios'; - import { useCallback, useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/RequestModal/QuotaDisplay/index.tsx b/src/components/RequestModal/QuotaDisplay/index.tsx index fb9e93b11..9ee6af147 100644 --- a/src/components/RequestModal/QuotaDisplay/index.tsx +++ b/src/components/RequestModal/QuotaDisplay/index.tsx @@ -1,6 +1,5 @@ import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid'; import Link from 'next/link'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import type { QuotaStatus } from '../../../../server/interfaces/api/userInterfaces'; diff --git a/src/components/RequestModal/SearchByNameModal/index.tsx b/src/components/RequestModal/SearchByNameModal/index.tsx index 856239ba8..4bfb9631d 100644 --- a/src/components/RequestModal/SearchByNameModal/index.tsx +++ b/src/components/RequestModal/SearchByNameModal/index.tsx @@ -1,5 +1,4 @@ import { DownloadIcon } from '@heroicons/react/outline'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { SonarrSeries } from '../../../../server/api/servarr/sonarr'; diff --git a/src/components/RequestModal/TvRequestModal.tsx b/src/components/RequestModal/TvRequestModal.tsx index 7bc1103f8..8878af95f 100644 --- a/src/components/RequestModal/TvRequestModal.tsx +++ b/src/components/RequestModal/TvRequestModal.tsx @@ -1,6 +1,5 @@ import { DownloadIcon } from '@heroicons/react/outline'; import axios from 'axios'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsDiscord.tsx b/src/components/Settings/Notifications/NotificationsDiscord.tsx index 3c1bb96fd..20db80cc4 100644 --- a/src/components/Settings/Notifications/NotificationsDiscord.tsx +++ b/src/components/Settings/Notifications/NotificationsDiscord.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsEmail.tsx b/src/components/Settings/Notifications/NotificationsEmail.tsx index fac6dd664..244b5b823 100644 --- a/src/components/Settings/Notifications/NotificationsEmail.tsx +++ b/src/components/Settings/Notifications/NotificationsEmail.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsLunaSea/index.tsx b/src/components/Settings/Notifications/NotificationsLunaSea/index.tsx index 33fd9e89f..22fff42dc 100644 --- a/src/components/Settings/Notifications/NotificationsLunaSea/index.tsx +++ b/src/components/Settings/Notifications/NotificationsLunaSea/index.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx b/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx index 31b47125e..78012e668 100644 --- a/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx +++ b/src/components/Settings/Notifications/NotificationsPushbullet/index.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsPushover/index.tsx b/src/components/Settings/Notifications/NotificationsPushover/index.tsx index a8b07e5fe..d1e164e31 100644 --- a/src/components/Settings/Notifications/NotificationsPushover/index.tsx +++ b/src/components/Settings/Notifications/NotificationsPushover/index.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsSlack/index.tsx b/src/components/Settings/Notifications/NotificationsSlack/index.tsx index 868973bce..e6437f322 100644 --- a/src/components/Settings/Notifications/NotificationsSlack/index.tsx +++ b/src/components/Settings/Notifications/NotificationsSlack/index.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/Notifications/NotificationsTelegram.tsx b/src/components/Settings/Notifications/NotificationsTelegram.tsx index da6deecbd..319cd1779 100644 --- a/src/components/Settings/Notifications/NotificationsTelegram.tsx +++ b/src/components/Settings/Notifications/NotificationsTelegram.tsx @@ -1,7 +1,6 @@ import { BeakerIcon, SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/RadarrModal/index.tsx b/src/components/Settings/RadarrModal/index.tsx index 76a1c3119..1cfaf4cfa 100644 --- a/src/components/Settings/RadarrModal/index.tsx +++ b/src/components/Settings/RadarrModal/index.tsx @@ -1,7 +1,6 @@ import { PencilIcon, PlusIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Formik } from 'formik'; - import { useCallback, useEffect, useRef, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import Select from 'react-select'; diff --git a/src/components/Settings/SettingsAbout/index.tsx b/src/components/Settings/SettingsAbout/index.tsx index 3274f7202..00aaa5aec 100644 --- a/src/components/Settings/SettingsAbout/index.tsx +++ b/src/components/Settings/SettingsAbout/index.tsx @@ -1,5 +1,4 @@ import { InformationCircleIcon } from '@heroicons/react/solid'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { diff --git a/src/components/Settings/SettingsLogs/index.tsx b/src/components/Settings/SettingsLogs/index.tsx index 8263dbc57..f70beb6e1 100644 --- a/src/components/Settings/SettingsLogs/index.tsx +++ b/src/components/Settings/SettingsLogs/index.tsx @@ -9,7 +9,6 @@ import { } from '@heroicons/react/solid'; import copy from 'copy-to-clipboard'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/SettingsMain.tsx b/src/components/Settings/SettingsMain.tsx index 4a8b69a1e..57b699319 100644 --- a/src/components/Settings/SettingsMain.tsx +++ b/src/components/Settings/SettingsMain.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import { RefreshIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR, { mutate } from 'swr'; diff --git a/src/components/Settings/SettingsNotifications.tsx b/src/components/Settings/SettingsNotifications.tsx index 82bb70740..43d47c6de 100644 --- a/src/components/Settings/SettingsNotifications.tsx +++ b/src/components/Settings/SettingsNotifications.tsx @@ -1,5 +1,4 @@ import { CloudIcon, LightningBoltIcon, MailIcon } from '@heroicons/react/solid'; - import { defineMessages, useIntl } from 'react-intl'; import DiscordLogo from '../../assets/extlogos/discord.svg'; import GotifyLogo from '../../assets/extlogos/gotify.svg'; diff --git a/src/components/Settings/SettingsPlex.tsx b/src/components/Settings/SettingsPlex.tsx index 1387c351c..319997a28 100644 --- a/src/components/Settings/SettingsPlex.tsx +++ b/src/components/Settings/SettingsPlex.tsx @@ -3,7 +3,6 @@ import { RefreshIcon, SearchIcon, XIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Formik } from 'formik'; import { orderBy } from 'lodash'; - import { useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/Settings/SettingsServices.tsx b/src/components/Settings/SettingsServices.tsx index f460bb1da..c618f7ba2 100644 --- a/src/components/Settings/SettingsServices.tsx +++ b/src/components/Settings/SettingsServices.tsx @@ -1,6 +1,5 @@ import { PencilIcon, PlusIcon, TrashIcon } from '@heroicons/react/solid'; import axios from 'axios'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR, { mutate } from 'swr'; diff --git a/src/components/Settings/SettingsUsers/index.tsx b/src/components/Settings/SettingsUsers/index.tsx index bb3a8d891..e78a97f69 100644 --- a/src/components/Settings/SettingsUsers/index.tsx +++ b/src/components/Settings/SettingsUsers/index.tsx @@ -1,7 +1,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR, { mutate } from 'swr'; diff --git a/src/components/Settings/SonarrModal/index.tsx b/src/components/Settings/SonarrModal/index.tsx index 71282dcbf..719ca4ea4 100644 --- a/src/components/Settings/SonarrModal/index.tsx +++ b/src/components/Settings/SonarrModal/index.tsx @@ -1,7 +1,6 @@ import { PencilIcon, PlusIcon } from '@heroicons/react/solid'; import axios from 'axios'; import { Field, Formik } from 'formik'; - import { useCallback, useEffect, useRef, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import type { OnChangeValue } from 'react-select'; diff --git a/src/components/Toast/index.tsx b/src/components/Toast/index.tsx index 57ffbdba4..23e202d16 100644 --- a/src/components/Toast/index.tsx +++ b/src/components/Toast/index.tsx @@ -5,7 +5,6 @@ import { InformationCircleIcon, } from '@heroicons/react/outline'; import { XIcon } from '@heroicons/react/solid'; - import type { ToastProps } from 'react-toast-notifications'; import Transition from '../Transition'; diff --git a/src/components/TvDetails/TvCast/index.tsx b/src/components/TvDetails/TvCast/index.tsx index 09e4a8be8..d30ec71bb 100644 --- a/src/components/TvDetails/TvCast/index.tsx +++ b/src/components/TvDetails/TvCast/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { TvDetails } from '../../../../server/models/Tv'; diff --git a/src/components/TvDetails/TvCrew/index.tsx b/src/components/TvDetails/TvCrew/index.tsx index 2f6890b28..7dff59db8 100644 --- a/src/components/TvDetails/TvCrew/index.tsx +++ b/src/components/TvDetails/TvCrew/index.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { TvDetails } from '../../../../server/models/Tv'; diff --git a/src/components/TvDetails/TvRecommendations.tsx b/src/components/TvDetails/TvRecommendations.tsx index db00c0708..d5563350c 100644 --- a/src/components/TvDetails/TvRecommendations.tsx +++ b/src/components/TvDetails/TvRecommendations.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { TvResult } from '../../../server/models/Search'; diff --git a/src/components/TvDetails/TvSimilar.tsx b/src/components/TvDetails/TvSimilar.tsx index d9b07a9ce..74a2c7d97 100644 --- a/src/components/TvDetails/TvSimilar.tsx +++ b/src/components/TvDetails/TvSimilar.tsx @@ -1,6 +1,5 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { TvResult } from '../../../server/models/Search'; diff --git a/src/components/TvDetails/index.tsx b/src/components/TvDetails/index.tsx index bad8bb58b..0a24a888e 100644 --- a/src/components/TvDetails/index.tsx +++ b/src/components/TvDetails/index.tsx @@ -9,7 +9,6 @@ import { hasFlag } from 'country-flag-icons'; import 'country-flag-icons/3x2/flags.css'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useEffect, useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; diff --git a/src/components/UserList/PlexImportModal.tsx b/src/components/UserList/PlexImportModal.tsx index 5473d1cf9..48b074e75 100644 --- a/src/components/UserList/PlexImportModal.tsx +++ b/src/components/UserList/PlexImportModal.tsx @@ -1,6 +1,5 @@ import { InboxInIcon } from '@heroicons/react/solid'; import axios from 'axios'; - import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/UserList/index.tsx b/src/components/UserList/index.tsx index e07824cec..9e19ab7ea 100644 --- a/src/components/UserList/index.tsx +++ b/src/components/UserList/index.tsx @@ -11,7 +11,6 @@ import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import Link from 'next/link'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/UserProfile/ProfileHeader/index.tsx b/src/components/UserProfile/ProfileHeader/index.tsx index 7fd980930..1a60200a8 100644 --- a/src/components/UserProfile/ProfileHeader/index.tsx +++ b/src/components/UserProfile/ProfileHeader/index.tsx @@ -1,6 +1,5 @@ import { CogIcon, UserIcon } from '@heroicons/react/solid'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import type { User } from '../../../hooks/useUser'; import { Permission, useUser } from '../../../hooks/useUser'; diff --git a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx index a68a2d888..dd348ce76 100644 --- a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { useEffect, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord.tsx index 26f28041c..07f6867e4 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail.tsx index 6c6620338..30dd1795d 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet.tsx index c28ed656a..eabaf941a 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet.tsx @@ -1,7 +1,6 @@ import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover.tsx index 8435bdf21..aea86fc59 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover.tsx @@ -1,7 +1,6 @@ import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram.tsx index f7f664819..7295237cb 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Field, Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush.tsx index de44818b7..9987a9b88 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR, { mutate } from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx index bfdb33b23..b7af6fbc2 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/index.tsx @@ -1,6 +1,5 @@ import { CloudIcon, MailIcon } from '@heroicons/react/solid'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { UserSettingsNotificationsResponse } from '../../../../../server/interfaces/api/userSettingsInterfaces'; diff --git a/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx b/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx index b28a42400..d25d97d3c 100644 --- a/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx +++ b/src/components/UserProfile/UserSettings/UserPasswordChange/index.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/UserPermissions/index.tsx b/src/components/UserProfile/UserSettings/UserPermissions/index.tsx index 77610c630..23434d0ae 100644 --- a/src/components/UserProfile/UserSettings/UserPermissions/index.tsx +++ b/src/components/UserProfile/UserSettings/UserPermissions/index.tsx @@ -2,7 +2,6 @@ import { SaveIcon } from '@heroicons/react/outline'; import axios from 'axios'; import { Form, Formik } from 'formik'; import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; diff --git a/src/components/UserProfile/UserSettings/index.tsx b/src/components/UserProfile/UserSettings/index.tsx index 972f4e771..e0a36fdc6 100644 --- a/src/components/UserProfile/UserSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/index.tsx @@ -1,5 +1,4 @@ import { useRouter } from 'next/router'; - import { defineMessages, useIntl } from 'react-intl'; import useSWR from 'swr'; import type { UserSettingsNotificationsResponse } from '../../../../server/interfaces/api/userSettingsInterfaces'; diff --git a/src/context/UserContext.tsx b/src/context/UserContext.tsx index 3413df467..67ebe135b 100644 --- a/src/context/UserContext.tsx +++ b/src/context/UserContext.tsx @@ -1,5 +1,4 @@ import { useRouter } from 'next/dist/client/router'; - import { useEffect, useRef } from 'react'; import type { User } from '../hooks/useUser'; import { useUser } from '../hooks/useUser'; diff --git a/src/pages/404.tsx b/src/pages/404.tsx index da74cfe8f..7f3e88dfb 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,6 +1,5 @@ import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import PageTitle from '../components/Common/PageTitle'; diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index aeef14c02..3b3112d33 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -2,7 +2,6 @@ import axios from 'axios'; import type { AppInitialProps, AppProps } from 'next/app'; import App from 'next/app'; import Head from 'next/head'; - import { useEffect, useState } from 'react'; import { IntlProvider } from 'react-intl'; import { ToastProvider } from 'react-toast-notifications'; diff --git a/src/pages/_error.tsx b/src/pages/_error.tsx index cf84a918f..5b534b2d1 100644 --- a/src/pages/_error.tsx +++ b/src/pages/_error.tsx @@ -1,7 +1,6 @@ import { ArrowCircleRightIcon } from '@heroicons/react/outline'; import type { NextPage } from 'next'; import Link from 'next/link'; - import { defineMessages, useIntl } from 'react-intl'; import PageTitle from '../components/Common/PageTitle'; import type { Undefinable } from '../utils/typeHelpers'; diff --git a/src/pages/collection/[collectionId]/index.tsx b/src/pages/collection/[collectionId]/index.tsx index 7a0848dc1..b58f4eaee 100644 --- a/src/pages/collection/[collectionId]/index.tsx +++ b/src/pages/collection/[collectionId]/index.tsx @@ -1,6 +1,5 @@ import axios from 'axios'; import type { GetServerSideProps, NextPage } from 'next'; - import type { Collection } from '../../../../server/models/Collection'; import CollectionDetails from '../../../components/CollectionDetails'; diff --git a/src/pages/issues/[issueId]/index.tsx b/src/pages/issues/[issueId]/index.tsx index 5d9c18112..f0a6c6dca 100644 --- a/src/pages/issues/[issueId]/index.tsx +++ b/src/pages/issues/[issueId]/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import IssueDetails from '../../../components/IssueDetails'; import useRouteGuard from '../../../hooks/useRouteGuard'; import { Permission } from '../../../hooks/useUser'; diff --git a/src/pages/issues/index.tsx b/src/pages/issues/index.tsx index 4dc6e888a..36be81585 100644 --- a/src/pages/issues/index.tsx +++ b/src/pages/issues/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import IssueList from '../../components/IssueList'; import useRouteGuard from '../../hooks/useRouteGuard'; import { Permission } from '../../hooks/useUser'; diff --git a/src/pages/movie/[movieId]/cast.tsx b/src/pages/movie/[movieId]/cast.tsx index f2ee8f258..671f205b2 100644 --- a/src/pages/movie/[movieId]/cast.tsx +++ b/src/pages/movie/[movieId]/cast.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import MovieCast from '../../../components/MovieDetails/MovieCast'; const MovieCastPage: NextPage = () => { diff --git a/src/pages/movie/[movieId]/crew.tsx b/src/pages/movie/[movieId]/crew.tsx index f62f258db..de026d147 100644 --- a/src/pages/movie/[movieId]/crew.tsx +++ b/src/pages/movie/[movieId]/crew.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import MovieCrew from '../../../components/MovieDetails/MovieCrew'; const MovieCrewPage: NextPage = () => { diff --git a/src/pages/movie/[movieId]/index.tsx b/src/pages/movie/[movieId]/index.tsx index 9951dc86e..f42c4974e 100644 --- a/src/pages/movie/[movieId]/index.tsx +++ b/src/pages/movie/[movieId]/index.tsx @@ -1,6 +1,5 @@ import axios from 'axios'; import type { NextPage } from 'next'; - import type { MovieDetails as MovieDetailsType } from '../../../../server/models/Movie'; import MovieDetails from '../../../components/MovieDetails'; diff --git a/src/pages/profile/index.tsx b/src/pages/profile/index.tsx index 21c3a260e..3b4ce4268 100644 --- a/src/pages/profile/index.tsx +++ b/src/pages/profile/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserProfile from '../../components/UserProfile'; const UserPage: NextPage = () => { diff --git a/src/pages/profile/settings/index.tsx b/src/pages/profile/settings/index.tsx index ddc6881c9..0d2de65dc 100644 --- a/src/pages/profile/settings/index.tsx +++ b/src/pages/profile/settings/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../components/UserProfile/UserSettings'; import UserGeneralSettings from '../../../components/UserProfile/UserSettings/UserGeneralSettings'; diff --git a/src/pages/profile/settings/main.tsx b/src/pages/profile/settings/main.tsx index 7363ad6b8..8cd5b2cf5 100644 --- a/src/pages/profile/settings/main.tsx +++ b/src/pages/profile/settings/main.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../components/UserProfile/UserSettings'; import UserGeneralSettings from '../../../components/UserProfile/UserSettings/UserGeneralSettings'; diff --git a/src/pages/profile/settings/notifications/discord.tsx b/src/pages/profile/settings/notifications/discord.tsx index cabc78948..5339a7660 100644 --- a/src/pages/profile/settings/notifications/discord.tsx +++ b/src/pages/profile/settings/notifications/discord.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsDiscord from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord'; diff --git a/src/pages/profile/settings/notifications/email.tsx b/src/pages/profile/settings/notifications/email.tsx index ebbd19356..c8c0129d0 100644 --- a/src/pages/profile/settings/notifications/email.tsx +++ b/src/pages/profile/settings/notifications/email.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsEmail from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail'; diff --git a/src/pages/profile/settings/notifications/pushbullet.tsx b/src/pages/profile/settings/notifications/pushbullet.tsx index fe262b109..41b173452 100644 --- a/src/pages/profile/settings/notifications/pushbullet.tsx +++ b/src/pages/profile/settings/notifications/pushbullet.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsPushbullet from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet'; diff --git a/src/pages/profile/settings/notifications/pushover.tsx b/src/pages/profile/settings/notifications/pushover.tsx index 8ee1e4c44..8ca5bd4b7 100644 --- a/src/pages/profile/settings/notifications/pushover.tsx +++ b/src/pages/profile/settings/notifications/pushover.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsPushover from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover'; diff --git a/src/pages/profile/settings/notifications/telegram.tsx b/src/pages/profile/settings/notifications/telegram.tsx index e7459ccab..c4d13e7be 100644 --- a/src/pages/profile/settings/notifications/telegram.tsx +++ b/src/pages/profile/settings/notifications/telegram.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsTelegram from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram'; diff --git a/src/pages/profile/settings/notifications/webpush.tsx b/src/pages/profile/settings/notifications/webpush.tsx index 3a4a7272d..54a400b51 100644 --- a/src/pages/profile/settings/notifications/webpush.tsx +++ b/src/pages/profile/settings/notifications/webpush.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserWebPushSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush'; diff --git a/src/pages/profile/settings/password.tsx b/src/pages/profile/settings/password.tsx index 12ea2765e..6e777e27a 100644 --- a/src/pages/profile/settings/password.tsx +++ b/src/pages/profile/settings/password.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../components/UserProfile/UserSettings'; import UserPasswordChange from '../../../components/UserProfile/UserSettings/UserPasswordChange'; diff --git a/src/pages/profile/settings/permissions.tsx b/src/pages/profile/settings/permissions.tsx index a3b66c6ea..c228437a0 100644 --- a/src/pages/profile/settings/permissions.tsx +++ b/src/pages/profile/settings/permissions.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../components/UserProfile/UserSettings'; import UserPermissions from '../../../components/UserProfile/UserSettings/UserPermissions'; diff --git a/src/pages/settings/about.tsx b/src/pages/settings/about.tsx index 5f735f049..8fa6d29c3 100644 --- a/src/pages/settings/about.tsx +++ b/src/pages/settings/about.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsAbout from '../../components/Settings/SettingsAbout'; import SettingsLayout from '../../components/Settings/SettingsLayout'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/settings/jobs.tsx b/src/pages/settings/jobs.tsx index d59d0e26b..60deb0cd3 100644 --- a/src/pages/settings/jobs.tsx +++ b/src/pages/settings/jobs.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsJobs from '../../components/Settings/SettingsJobsCache'; import SettingsLayout from '../../components/Settings/SettingsLayout'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/settings/logs.tsx b/src/pages/settings/logs.tsx index d670d76b9..93eb8b8e2 100644 --- a/src/pages/settings/logs.tsx +++ b/src/pages/settings/logs.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsLayout from '../../components/Settings/SettingsLayout'; import SettingsLogs from '../../components/Settings/SettingsLogs'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/settings/notifications/discord.tsx b/src/pages/settings/notifications/discord.tsx index e087941f5..10540b4bb 100644 --- a/src/pages/settings/notifications/discord.tsx +++ b/src/pages/settings/notifications/discord.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsDiscord from '../../../components/Settings/Notifications/NotificationsDiscord'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/email.tsx b/src/pages/settings/notifications/email.tsx index 66d336404..2ec4fbd5d 100644 --- a/src/pages/settings/notifications/email.tsx +++ b/src/pages/settings/notifications/email.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsEmail from '../../../components/Settings/Notifications/NotificationsEmail'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/gotify.tsx b/src/pages/settings/notifications/gotify.tsx index 83f48025d..86a83e734 100644 --- a/src/pages/settings/notifications/gotify.tsx +++ b/src/pages/settings/notifications/gotify.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsGotify from '../../../components/Settings/Notifications/NotificationsGotify'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/lunasea.tsx b/src/pages/settings/notifications/lunasea.tsx index 7ddef083f..00a7a0a7b 100644 --- a/src/pages/settings/notifications/lunasea.tsx +++ b/src/pages/settings/notifications/lunasea.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsLunaSea from '../../../components/Settings/Notifications/NotificationsLunaSea'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/pushbullet.tsx b/src/pages/settings/notifications/pushbullet.tsx index d09a529cc..9002d66a1 100644 --- a/src/pages/settings/notifications/pushbullet.tsx +++ b/src/pages/settings/notifications/pushbullet.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsPushbullet from '../../../components/Settings/Notifications/NotificationsPushbullet'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/pushover.tsx b/src/pages/settings/notifications/pushover.tsx index d9018255f..b3262ab27 100644 --- a/src/pages/settings/notifications/pushover.tsx +++ b/src/pages/settings/notifications/pushover.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsPushover from '../../../components/Settings/Notifications/NotificationsPushover'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/slack.tsx b/src/pages/settings/notifications/slack.tsx index 0230a6214..98340f57b 100644 --- a/src/pages/settings/notifications/slack.tsx +++ b/src/pages/settings/notifications/slack.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsSlack from '../../../components/Settings/Notifications/NotificationsSlack'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/telegram.tsx b/src/pages/settings/notifications/telegram.tsx index 6de159a8f..e3b096c9f 100644 --- a/src/pages/settings/notifications/telegram.tsx +++ b/src/pages/settings/notifications/telegram.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsTelegram from '../../../components/Settings/Notifications/NotificationsTelegram'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/webhook.tsx b/src/pages/settings/notifications/webhook.tsx index 7556b8472..d06c1b65c 100644 --- a/src/pages/settings/notifications/webhook.tsx +++ b/src/pages/settings/notifications/webhook.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsWebhook from '../../../components/Settings/Notifications/NotificationsWebhook'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/notifications/webpush.tsx b/src/pages/settings/notifications/webpush.tsx index 2ebb47a2b..c517c704b 100644 --- a/src/pages/settings/notifications/webpush.tsx +++ b/src/pages/settings/notifications/webpush.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import NotificationsWebPush from '../../../components/Settings/Notifications/NotificationsWebPush'; import SettingsLayout from '../../../components/Settings/SettingsLayout'; import SettingsNotifications from '../../../components/Settings/SettingsNotifications'; diff --git a/src/pages/settings/plex.tsx b/src/pages/settings/plex.tsx index 18da3d136..589851b33 100644 --- a/src/pages/settings/plex.tsx +++ b/src/pages/settings/plex.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsLayout from '../../components/Settings/SettingsLayout'; import SettingsPlex from '../../components/Settings/SettingsPlex'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/settings/services.tsx b/src/pages/settings/services.tsx index af9f6d2ac..c061c82aa 100644 --- a/src/pages/settings/services.tsx +++ b/src/pages/settings/services.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import SettingsLayout from '../../components/Settings/SettingsLayout'; import SettingsServices from '../../components/Settings/SettingsServices'; import useRouteGuard from '../../hooks/useRouteGuard'; diff --git a/src/pages/tv/[tvId]/cast.tsx b/src/pages/tv/[tvId]/cast.tsx index 26dfa11b0..3843b512e 100644 --- a/src/pages/tv/[tvId]/cast.tsx +++ b/src/pages/tv/[tvId]/cast.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import TvCast from '../../../components/TvDetails/TvCast'; const TvCastPage: NextPage = () => { diff --git a/src/pages/tv/[tvId]/crew.tsx b/src/pages/tv/[tvId]/crew.tsx index 014efe11c..23f8b926c 100644 --- a/src/pages/tv/[tvId]/crew.tsx +++ b/src/pages/tv/[tvId]/crew.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import TvCrew from '../../../components/TvDetails/TvCrew'; const TvCrewPage: NextPage = () => { diff --git a/src/pages/tv/[tvId]/index.tsx b/src/pages/tv/[tvId]/index.tsx index 4b83b3c2c..ef89825b4 100644 --- a/src/pages/tv/[tvId]/index.tsx +++ b/src/pages/tv/[tvId]/index.tsx @@ -1,6 +1,5 @@ import axios from 'axios'; import type { NextPage } from 'next'; - import type { TvDetails as TvDetailsType } from '../../../../server/models/Tv'; import TvDetails from '../../../components/TvDetails'; diff --git a/src/pages/users/[userId]/index.tsx b/src/pages/users/[userId]/index.tsx index 04c0e460b..740727e07 100644 --- a/src/pages/users/[userId]/index.tsx +++ b/src/pages/users/[userId]/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserProfile from '../../../components/UserProfile'; const UserPage: NextPage = () => { diff --git a/src/pages/users/[userId]/requests.tsx b/src/pages/users/[userId]/requests.tsx index 4ffb0e553..2a4e3c300 100644 --- a/src/pages/users/[userId]/requests.tsx +++ b/src/pages/users/[userId]/requests.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import RequestList from '../../../components/RequestList'; import useRouteGuard from '../../../hooks/useRouteGuard'; import { Permission } from '../../../hooks/useUser'; diff --git a/src/pages/users/[userId]/settings/index.tsx b/src/pages/users/[userId]/settings/index.tsx index 862ad7b2d..67e70cba2 100644 --- a/src/pages/users/[userId]/settings/index.tsx +++ b/src/pages/users/[userId]/settings/index.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserGeneralSettings from '../../../../components/UserProfile/UserSettings/UserGeneralSettings'; import useRouteGuard from '../../../../hooks/useRouteGuard'; diff --git a/src/pages/users/[userId]/settings/main.tsx b/src/pages/users/[userId]/settings/main.tsx index e0764fedb..40d2f9cb0 100644 --- a/src/pages/users/[userId]/settings/main.tsx +++ b/src/pages/users/[userId]/settings/main.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserGeneralSettings from '../../../../components/UserProfile/UserSettings/UserGeneralSettings'; import useRouteGuard from '../../../../hooks/useRouteGuard'; diff --git a/src/pages/users/[userId]/settings/notifications/discord.tsx b/src/pages/users/[userId]/settings/notifications/discord.tsx index 837d88f9c..d051f0060 100644 --- a/src/pages/users/[userId]/settings/notifications/discord.tsx +++ b/src/pages/users/[userId]/settings/notifications/discord.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsDiscord from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsDiscord'; diff --git a/src/pages/users/[userId]/settings/notifications/email.tsx b/src/pages/users/[userId]/settings/notifications/email.tsx index bda08b3a0..15eb8681e 100644 --- a/src/pages/users/[userId]/settings/notifications/email.tsx +++ b/src/pages/users/[userId]/settings/notifications/email.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsEmail from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsEmail'; diff --git a/src/pages/users/[userId]/settings/notifications/pushbullet.tsx b/src/pages/users/[userId]/settings/notifications/pushbullet.tsx index 30e17e05d..62856285d 100644 --- a/src/pages/users/[userId]/settings/notifications/pushbullet.tsx +++ b/src/pages/users/[userId]/settings/notifications/pushbullet.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsPushbullet from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushbullet'; diff --git a/src/pages/users/[userId]/settings/notifications/pushover.tsx b/src/pages/users/[userId]/settings/notifications/pushover.tsx index 18dd034f0..842310601 100644 --- a/src/pages/users/[userId]/settings/notifications/pushover.tsx +++ b/src/pages/users/[userId]/settings/notifications/pushover.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsPushover from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsPushover'; diff --git a/src/pages/users/[userId]/settings/notifications/telegram.tsx b/src/pages/users/[userId]/settings/notifications/telegram.tsx index 4f6e16844..f81cebc01 100644 --- a/src/pages/users/[userId]/settings/notifications/telegram.tsx +++ b/src/pages/users/[userId]/settings/notifications/telegram.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserNotificationsTelegram from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsTelegram'; diff --git a/src/pages/users/[userId]/settings/notifications/webpush.tsx b/src/pages/users/[userId]/settings/notifications/webpush.tsx index 4a58ed224..22b0cc5b8 100644 --- a/src/pages/users/[userId]/settings/notifications/webpush.tsx +++ b/src/pages/users/[userId]/settings/notifications/webpush.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../../components/UserProfile/UserSettings'; import UserNotificationSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings'; import UserWebPushSettings from '../../../../../components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush'; diff --git a/src/pages/users/[userId]/settings/password.tsx b/src/pages/users/[userId]/settings/password.tsx index b14cd4c28..7021ac491 100644 --- a/src/pages/users/[userId]/settings/password.tsx +++ b/src/pages/users/[userId]/settings/password.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserPasswordChange from '../../../../components/UserProfile/UserSettings/UserPasswordChange'; import useRouteGuard from '../../../../hooks/useRouteGuard'; diff --git a/src/pages/users/[userId]/settings/permissions.tsx b/src/pages/users/[userId]/settings/permissions.tsx index 005573490..4161cd1c5 100644 --- a/src/pages/users/[userId]/settings/permissions.tsx +++ b/src/pages/users/[userId]/settings/permissions.tsx @@ -1,5 +1,4 @@ import type { NextPage } from 'next'; - import UserSettings from '../../../../components/UserProfile/UserSettings'; import UserPermissions from '../../../../components/UserProfile/UserSettings/UserPermissions'; import useRouteGuard from '../../../../hooks/useRouteGuard';