diff --git a/src/components/molecules/OptionsPanel.tsx b/src/components/molecules/OptionsPanel.tsx index a55cac05..bb2263ce 100644 --- a/src/components/molecules/OptionsPanel.tsx +++ b/src/components/molecules/OptionsPanel.tsx @@ -34,7 +34,3 @@ export const OptionsPanel: React.FC = ({ open, onClose, children, minHei {children} ); - -OptionsPanel.defaultProps = { - minHeight: undefined, -}; diff --git a/src/components/molecules/OptionsTabs.tsx b/src/components/molecules/OptionsTabs.tsx index f4351c57..c1f8f702 100644 --- a/src/components/molecules/OptionsTabs.tsx +++ b/src/components/molecules/OptionsTabs.tsx @@ -53,7 +53,3 @@ export const OptionsTabs = ({ ); }; - -OptionsTabs.defaultProps = { - minHeight: undefined, -}; diff --git a/src/components/navbar/action/LangSelect.tsx b/src/components/navbar/action/LangSelect.tsx index 3f35bbf1..e49355d1 100644 --- a/src/components/navbar/action/LangSelect.tsx +++ b/src/components/navbar/action/LangSelect.tsx @@ -44,9 +44,9 @@ interface IProps { export function LangSelect(props: IProps) { const { t } = useTranslation(); - const { shownLangs, setShownLangs, allLangs, forcedLangs } = props; + const { shownLangs, setShownLangs, allLangs, forcedLangs = [] } = props; // hold a copy and only sate state on parent when OK pressed, improves performance - const [mShownLangs, setMShownLangs] = useState(removeAll(cloneObject(shownLangs), forcedLangs!)); + const [mShownLangs, setMShownLangs] = useState(removeAll(cloneObject(shownLangs), forcedLangs)); const [open, setOpen] = useState(false); const handleCancel = () => { @@ -120,7 +120,3 @@ export function LangSelect(props: IProps) { ); } - -LangSelect.defaultProps = { - forcedLangs: [] as string[], -}; diff --git a/src/components/util/EmptyViewAbsoluteCentered.tsx b/src/components/util/EmptyViewAbsoluteCentered.tsx index 93452bc0..2f82bc47 100644 --- a/src/components/util/EmptyViewAbsoluteCentered.tsx +++ b/src/components/util/EmptyViewAbsoluteCentered.tsx @@ -23,7 +23,3 @@ export function EmptyViewAbsoluteCentered({ sx, ...emptyViewProps }: EmptyViewPr /> ); } - -EmptyViewAbsoluteCentered.defaultProps = { - messageExtra: undefined, -}; diff --git a/src/lib/graphql/generated/graphql.ts b/src/lib/graphql/generated/graphql.ts index 870c0b29..267b090c 100644 --- a/src/lib/graphql/generated/graphql.ts +++ b/src/lib/graphql/generated/graphql.ts @@ -64,6 +64,8 @@ export type BindTrackPayload = { export type BooleanFilterInput = { distinctFrom?: InputMaybe; + distinctFromAll?: InputMaybe>; + distinctFromAny?: InputMaybe>; equalTo?: InputMaybe; greaterThan?: InputMaybe; greaterThanOrEqualTo?: InputMaybe; @@ -73,6 +75,8 @@ export type BooleanFilterInput = { lessThanOrEqualTo?: InputMaybe; notDistinctFrom?: InputMaybe; notEqualTo?: InputMaybe; + notEqualToAll?: InputMaybe>; + notEqualToAny?: InputMaybe>; notIn?: InputMaybe>; }; @@ -127,6 +131,11 @@ export enum CategoryOrderBy { Order = 'ORDER' } +export type CategoryOrderInput = { + by: CategoryOrderBy; + byType?: InputMaybe; +}; + export type CategoryType = { __typename?: 'CategoryType'; default: Scalars['Boolean']['output']; @@ -219,6 +228,11 @@ export enum ChapterOrderBy { UploadDate = 'UPLOAD_DATE' } +export type ChapterOrderInput = { + by: ChapterOrderBy; + byType?: InputMaybe; +}; + export type ChapterType = { __typename?: 'ChapterType'; chapterNumber: Scalars['Float']['output']; @@ -437,6 +451,8 @@ export type DequeueChapterDownloadsPayload = { export type DoubleFilterInput = { distinctFrom?: InputMaybe; + distinctFromAll?: InputMaybe>; + distinctFromAny?: InputMaybe>; equalTo?: InputMaybe; greaterThan?: InputMaybe; greaterThanOrEqualTo?: InputMaybe; @@ -446,6 +462,8 @@ export type DoubleFilterInput = { lessThanOrEqualTo?: InputMaybe; notDistinctFrom?: InputMaybe; notEqualTo?: InputMaybe; + notEqualToAll?: InputMaybe>; + notEqualToAny?: InputMaybe>; notIn?: InputMaybe>; }; @@ -585,6 +603,11 @@ export enum ExtensionOrderBy { PkgName = 'PKG_NAME' } +export type ExtensionOrderInput = { + by: ExtensionOrderBy; + byType?: InputMaybe; +}; + export type ExtensionType = { __typename?: 'ExtensionType'; apkName: Scalars['String']['output']; @@ -693,6 +716,8 @@ export type FilterChangeInput = { export type FloatFilterInput = { distinctFrom?: InputMaybe; + distinctFromAll?: InputMaybe>; + distinctFromAny?: InputMaybe>; equalTo?: InputMaybe; greaterThan?: InputMaybe; greaterThanOrEqualTo?: InputMaybe; @@ -702,6 +727,8 @@ export type FloatFilterInput = { lessThanOrEqualTo?: InputMaybe; notDistinctFrom?: InputMaybe; notEqualTo?: InputMaybe; + notEqualToAll?: InputMaybe>; + notEqualToAny?: InputMaybe>; notIn?: InputMaybe>; }; @@ -754,6 +781,8 @@ export type InstallExternalExtensionPayload = { export type IntFilterInput = { distinctFrom?: InputMaybe; + distinctFromAll?: InputMaybe>; + distinctFromAny?: InputMaybe>; equalTo?: InputMaybe; greaterThan?: InputMaybe; greaterThanOrEqualTo?: InputMaybe; @@ -763,6 +792,8 @@ export type IntFilterInput = { lessThanOrEqualTo?: InputMaybe; notDistinctFrom?: InputMaybe; notEqualTo?: InputMaybe; + notEqualToAll?: InputMaybe>; + notEqualToAny?: InputMaybe>; notIn?: InputMaybe>; }; @@ -824,6 +855,8 @@ export type LogoutTrackerPayload = { export type LongFilterInput = { distinctFrom?: InputMaybe; + distinctFromAll?: InputMaybe>; + distinctFromAny?: InputMaybe>; equalTo?: InputMaybe; greaterThan?: InputMaybe; greaterThanOrEqualTo?: InputMaybe; @@ -833,6 +866,8 @@ export type LongFilterInput = { lessThanOrEqualTo?: InputMaybe; notDistinctFrom?: InputMaybe; notEqualTo?: InputMaybe; + notEqualToAll?: InputMaybe>; + notEqualToAny?: InputMaybe>; notIn?: InputMaybe>; }; @@ -914,6 +949,11 @@ export enum MangaOrderBy { Title = 'TITLE' } +export type MangaOrderInput = { + by: MangaOrderBy; + byType?: InputMaybe; +}; + export enum MangaStatus { Cancelled = 'CANCELLED', Completed = 'COMPLETED', @@ -926,6 +966,8 @@ export enum MangaStatus { export type MangaStatusFilterInput = { distinctFrom?: InputMaybe; + distinctFromAll?: InputMaybe>; + distinctFromAny?: InputMaybe>; equalTo?: InputMaybe; greaterThan?: InputMaybe; greaterThanOrEqualTo?: InputMaybe; @@ -935,6 +977,8 @@ export type MangaStatusFilterInput = { lessThanOrEqualTo?: InputMaybe; notDistinctFrom?: InputMaybe; notEqualTo?: InputMaybe; + notEqualToAll?: InputMaybe>; + notEqualToAny?: InputMaybe>; notIn?: InputMaybe>; }; @@ -999,6 +1043,11 @@ export enum MetaOrderBy { Value = 'VALUE' } +export type MetaOrderInput = { + by: MetaOrderBy; + byType?: InputMaybe; +}; + export type MetaType = { key: Scalars['String']['output']; value: Scalars['String']['output']; @@ -1528,6 +1577,7 @@ export type QueryCategoriesArgs = { first?: InputMaybe; last?: InputMaybe; offset?: InputMaybe; + order?: InputMaybe>; orderBy?: InputMaybe; orderByType?: InputMaybe; }; @@ -1551,6 +1601,7 @@ export type QueryChaptersArgs = { first?: InputMaybe; last?: InputMaybe; offset?: InputMaybe; + order?: InputMaybe>; orderBy?: InputMaybe; orderByType?: InputMaybe; }; @@ -1569,6 +1620,7 @@ export type QueryExtensionsArgs = { first?: InputMaybe; last?: InputMaybe; offset?: InputMaybe; + order?: InputMaybe>; orderBy?: InputMaybe; orderByType?: InputMaybe; }; @@ -1587,6 +1639,7 @@ export type QueryMangasArgs = { first?: InputMaybe; last?: InputMaybe; offset?: InputMaybe; + order?: InputMaybe>; orderBy?: InputMaybe; orderByType?: InputMaybe; }; @@ -1605,6 +1658,7 @@ export type QueryMetasArgs = { first?: InputMaybe; last?: InputMaybe; offset?: InputMaybe; + order?: InputMaybe>; orderBy?: InputMaybe; orderByType?: InputMaybe; }; @@ -1633,6 +1687,7 @@ export type QuerySourcesArgs = { first?: InputMaybe; last?: InputMaybe; offset?: InputMaybe; + order?: InputMaybe>; orderBy?: InputMaybe; orderByType?: InputMaybe; }; @@ -1651,6 +1706,7 @@ export type QueryTrackRecordsArgs = { first?: InputMaybe; last?: InputMaybe; offset?: InputMaybe; + order?: InputMaybe>; orderBy?: InputMaybe; orderByType?: InputMaybe; }; @@ -1668,6 +1724,7 @@ export type QueryTrackersArgs = { first?: InputMaybe; last?: InputMaybe; offset?: InputMaybe; + order?: InputMaybe>; orderBy?: InputMaybe; orderByType?: InputMaybe; }; @@ -1974,6 +2031,11 @@ export enum SourceOrderBy { Name = 'NAME' } +export type SourceOrderInput = { + by: SourceOrderBy; + byType?: InputMaybe; +}; + export type SourcePreferenceChangeInput = { checkBoxState?: InputMaybe; editTextState?: InputMaybe; @@ -2022,9 +2084,17 @@ export type StopDownloaderPayload = { export type StringFilterInput = { distinctFrom?: InputMaybe; + distinctFromAll?: InputMaybe>; + distinctFromAny?: InputMaybe>; distinctFromInsensitive?: InputMaybe; + distinctFromInsensitiveAll?: InputMaybe>; + distinctFromInsensitiveAny?: InputMaybe>; endsWith?: InputMaybe; + endsWithAll?: InputMaybe>; + endsWithAny?: InputMaybe>; endsWithInsensitive?: InputMaybe; + endsWithInsensitiveAll?: InputMaybe>; + endsWithInsensitiveAny?: InputMaybe>; equalTo?: InputMaybe; greaterThan?: InputMaybe; greaterThanInsensitive?: InputMaybe; @@ -2033,29 +2103,59 @@ export type StringFilterInput = { in?: InputMaybe>; inInsensitive?: InputMaybe>; includes?: InputMaybe; + includesAll?: InputMaybe>; + includesAny?: InputMaybe>; includesInsensitive?: InputMaybe; + includesInsensitiveAll?: InputMaybe>; + includesInsensitiveAny?: InputMaybe>; isNull?: InputMaybe; lessThan?: InputMaybe; lessThanInsensitive?: InputMaybe; lessThanOrEqualTo?: InputMaybe; lessThanOrEqualToInsensitive?: InputMaybe; like?: InputMaybe; + likeAll?: InputMaybe>; + likeAny?: InputMaybe>; likeInsensitive?: InputMaybe; + likeInsensitiveAll?: InputMaybe>; + likeInsensitiveAny?: InputMaybe>; notDistinctFrom?: InputMaybe; notDistinctFromInsensitive?: InputMaybe; notEndsWith?: InputMaybe; + notEndsWithAll?: InputMaybe>; + notEndsWithAny?: InputMaybe>; notEndsWithInsensitive?: InputMaybe; + notEndsWithInsensitiveAll?: InputMaybe>; + notEndsWithInsensitiveAny?: InputMaybe>; notEqualTo?: InputMaybe; + notEqualToAll?: InputMaybe>; + notEqualToAny?: InputMaybe>; notIn?: InputMaybe>; notInInsensitive?: InputMaybe>; notIncludes?: InputMaybe; + notIncludesAll?: InputMaybe>; + notIncludesAny?: InputMaybe>; notIncludesInsensitive?: InputMaybe; + notIncludesInsensitiveAll?: InputMaybe>; + notIncludesInsensitiveAny?: InputMaybe>; notLike?: InputMaybe; + notLikeAll?: InputMaybe>; + notLikeAny?: InputMaybe>; notLikeInsensitive?: InputMaybe; + notLikeInsensitiveAll?: InputMaybe>; + notLikeInsensitiveAny?: InputMaybe>; notStartsWith?: InputMaybe; + notStartsWithAll?: InputMaybe>; + notStartsWithAny?: InputMaybe>; notStartsWithInsensitive?: InputMaybe; + notStartsWithInsensitiveAll?: InputMaybe>; + notStartsWithInsensitiveAny?: InputMaybe>; startsWith?: InputMaybe; + startsWithAll?: InputMaybe>; + startsWithAny?: InputMaybe>; startsWithInsensitive?: InputMaybe; + startsWithInsensitiveAll?: InputMaybe>; + startsWithInsensitiveAny?: InputMaybe>; }; export type Subscription = { @@ -2154,6 +2254,11 @@ export enum TrackRecordOrderBy { TrackerId = 'TRACKER_ID' } +export type TrackRecordOrderInput = { + by: TrackRecordOrderBy; + byType?: InputMaybe; +}; + export type TrackRecordType = { __typename?: 'TrackRecordType'; displayScore: Scalars['String']['output']; @@ -2223,6 +2328,11 @@ export enum TrackerOrderBy { Name = 'NAME' } +export type TrackerOrderInput = { + by: TrackerOrderBy; + byType?: InputMaybe; +}; + export type TrackerType = { __typename?: 'TrackerType'; authUrl?: Maybe;