diff --git a/src/base/components/buttons/CustomButtonIcon.tsx b/src/base/components/buttons/CustomIconButton.tsx similarity index 90% rename from src/base/components/buttons/CustomButtonIcon.tsx rename to src/base/components/buttons/CustomIconButton.tsx index 6e38e6bc..1162d07f 100644 --- a/src/base/components/buttons/CustomButtonIcon.tsx +++ b/src/base/components/buttons/CustomIconButton.tsx @@ -9,7 +9,7 @@ import type { ButtonProps } from '@mui/material/Button'; import Button from '@mui/material/Button'; -export const CustomButtonIcon = ({ +export const CustomIconButton = ({ children, ...props }: ButtonProps) => ( diff --git a/src/features/manga/components/details/MangaDetails.tsx b/src/features/manga/components/details/MangaDetails.tsx index 5bfb64ca..7f0b5371 100644 --- a/src/features/manga/components/details/MangaDetails.tsx +++ b/src/features/manga/components/details/MangaDetails.tsx @@ -46,7 +46,7 @@ import type { MangaTrackRecordInfo, } from '@/features/manga/Manga.types.ts'; import { applyStyles } from '@/base/utils/ApplyStyles.ts'; -import { CustomButtonIcon } from '@/base/components/buttons/CustomButtonIcon.tsx'; +import { CustomIconButton } from '@/base/components/buttons/CustomIconButton.tsx'; import { Sources } from '@/features/source/services/Sources.ts'; import type { SourceIdInfo } from '@/features/source/Source.types.ts'; import { Thumbnail } from '@/features/manga/components/details/Thumbnail.tsx'; @@ -152,7 +152,7 @@ const OpenSourceButton = ({ url }: { url?: string | null }) => { return ( - { variant="outlined" > - + - { variant="outlined" > - + ); diff --git a/src/features/migration/components/migration-entry/MigrationEntrySearchExcludeActions.tsx b/src/features/migration/components/migration-entry/MigrationEntrySearchExcludeActions.tsx index f066b5a1..2f467b4a 100644 --- a/src/features/migration/components/migration-entry/MigrationEntrySearchExcludeActions.tsx +++ b/src/features/migration/components/migration-entry/MigrationEntrySearchExcludeActions.tsx @@ -9,7 +9,7 @@ import type { MangaIdInfo } from '@/features/manga/Manga.types.ts'; import { MediaQuery } from '@/base/utils/MediaQuery.tsx'; import { CustomTooltip } from '@/base/components/CustomTooltip.tsx'; -import { CustomButtonIcon } from '@/base/components/buttons/CustomButtonIcon.tsx'; +import { CustomIconButton } from '@/base/components/buttons/CustomIconButton.tsx'; import { MigrationManager } from '@/features/migration/MigrationManager.ts'; import IconButton from '@mui/material/IconButton'; import { useLingui } from '@lingui/react/macro'; @@ -65,7 +65,7 @@ export const MigrationEntrySearchExcludeActions = ({ )} {!isMigrating && !isExpanded && ( - - + )} {!isMigrating && hasSelectedMatch && ( - {isExcluded ? : } - + )} {isAbortable && ( - MigrationManager.abortEntry(mangaId)} > - + )} diff --git a/src/features/reader/overlay/navigation/desktop/components/ReaderNavBarDesktopNextPreviousButton.tsx b/src/features/reader/overlay/navigation/desktop/components/ReaderNavBarDesktopNextPreviousButton.tsx index 4d994684..c8cb1bff 100644 --- a/src/features/reader/overlay/navigation/desktop/components/ReaderNavBarDesktopNextPreviousButton.tsx +++ b/src/features/reader/overlay/navigation/desktop/components/ReaderNavBarDesktopNextPreviousButton.tsx @@ -10,20 +10,20 @@ import type { ComponentProps } from 'react'; import KeyboardArrowLeftIcon from '@mui/icons-material/KeyboardArrowLeft'; import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'; import { CustomTooltip } from '@/base/components/CustomTooltip.tsx'; -import { CustomButtonIcon } from '@/base/components/buttons/CustomButtonIcon.tsx'; +import { CustomIconButton } from '@/base/components/buttons/CustomIconButton.tsx'; export const ReaderNavBarDesktopNextPreviousButton = ({ title, type, disabled, ...customIconButtonProps -}: Omit, 'children'> & { +}: Omit, 'children'> & { title: string; type: 'previous' | 'next'; }) => ( - + {type === 'previous' ? : } - + ); diff --git a/src/features/reader/overlay/navigation/desktop/quick-settings/components/ReaderNavBarDesktopPageScale.tsx b/src/features/reader/overlay/navigation/desktop/quick-settings/components/ReaderNavBarDesktopPageScale.tsx index ccc5ed05..77a9413f 100644 --- a/src/features/reader/overlay/navigation/desktop/quick-settings/components/ReaderNavBarDesktopPageScale.tsx +++ b/src/features/reader/overlay/navigation/desktop/quick-settings/components/ReaderNavBarDesktopPageScale.tsx @@ -22,7 +22,7 @@ import { READER_PAGE_SCALE_MODE_VALUES, } from '@/features/reader/settings/ReaderSettings.constants.tsx'; import type { MultiValueButtonDefaultableProps } from '@/base/Base.types.ts'; -import { CustomButtonIcon } from '@/base/components/buttons/CustomButtonIcon.tsx'; +import { CustomIconButton } from '@/base/components/buttons/CustomIconButton.tsx'; export const ReaderNavBarDesktopPageScale = ({ pageScaleMode, @@ -52,14 +52,14 @@ export const ReaderNavBarDesktopPageScale = ({ /> {READER_PAGE_SCALE_MODE_TO_SCALING_ALLOWED[pageScaleMode.value] && ( - updateSetting('shouldStretchPage', !shouldStretchPage.value)} sx={{ px: undefined }} variant="contained" color={shouldStretchPage.value ? 'secondary' : 'primary'} > - + )} diff --git a/src/features/tracker/components/TrackerSearch.tsx b/src/features/tracker/components/TrackerSearch.tsx index 4f1cb169..1bd7712d 100644 --- a/src/features/tracker/components/TrackerSearch.tsx +++ b/src/features/tracker/components/TrackerSearch.tsx @@ -37,7 +37,7 @@ import { getErrorMessage } from '@/lib/HelperFunctions.ts'; import { applyStyles } from '@/base/utils/ApplyStyles.ts'; import type { TrackerIdInfo, TTrackerBind } from '@/features/tracker/Tracker.types.ts'; import { Tracker } from '@/features/tracker/Tracker.types.ts'; -import { CustomButtonIcon } from '@/base/components/buttons/CustomButtonIcon.tsx'; +import { CustomIconButton } from '@/base/components/buttons/CustomIconButton.tsx'; import { CustomTooltip } from '@/base/components/CustomTooltip.tsx'; import { STABLE_EMPTY_ARRAY } from '@/base/Base.constants.ts'; @@ -97,14 +97,14 @@ const TrackButton = ({ {supportsPrivateTracking && ( - trackManga(true)} > - + )}