Hide "default settings" footnote in reader layout default settings
This commit is contained in:
@@ -11,11 +11,11 @@ import Typography from '@mui/material/Typography';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { MediaQuery } from '@/modules/core/utils/MediaQuery.tsx';
|
||||
|
||||
export const DefaultSettingFootnote = () => {
|
||||
export const DefaultSettingFootnote = ({ areDefaultSettings }: { areDefaultSettings?: boolean }) => {
|
||||
const { t } = useTranslation();
|
||||
const isTouchDevice = MediaQuery.useIsTouchDevice();
|
||||
|
||||
if (!isTouchDevice) {
|
||||
if (!isTouchDevice || areDefaultSettings) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export const ReaderLayoutSettings = ({
|
||||
setShowPreview: TReaderTapZoneContext['setShowPreview'];
|
||||
}) => (
|
||||
<Stack sx={{ gap: 2 }}>
|
||||
<DefaultSettingFootnote />
|
||||
<DefaultSettingFootnote areDefaultSettings={!isDefaultable} />
|
||||
{isDefaultable && (
|
||||
<ReaderSettingReadingMode
|
||||
readingMode={settings.readingMode}
|
||||
|
||||
Reference in New Issue
Block a user