[skip ci] Prevent MUI console error

"A component rendering a native <button> resolved to a non-<button> element..." which was logged in case the button was disabled
This commit is contained in:
schroda
2026-07-16 02:33:15 +02:00
parent 3562f5f647
commit 13544e141b

View File

@@ -15,7 +15,6 @@ import Popover from '@mui/material/Popover';
import { bindPopover, bindTrigger, usePopupState } from 'material-ui-popup-state/hooks'; import { bindPopover, bindTrigger, usePopupState } from 'material-ui-popup-state/hooks';
import FormControl from '@mui/material/FormControl'; import FormControl from '@mui/material/FormControl';
import InputLabel from '@mui/material/InputLabel'; import InputLabel from '@mui/material/InputLabel';
import { Link } from 'react-router-dom';
import { useLingui } from '@lingui/react/macro'; import { useLingui } from '@lingui/react/macro';
import { Select } from '@/base/components/inputs/Select.tsx'; import { Select } from '@/base/components/inputs/Select.tsx';
import { ReaderChapterList } from '@/features/reader/overlay/navigation/components/ReaderChapterList.tsx'; import { ReaderChapterList } from '@/features/reader/overlay/navigation/components/ReaderChapterList.tsx';
@@ -80,7 +79,6 @@ const BaseReaderNavBarDesktopChapterNavigation = ({
</Select> </Select>
</FormControl> </FormControl>
<ReaderNavBarDesktopNextPreviousButton <ReaderNavBarDesktopNextPreviousButton
component={Link}
type="next" type="next"
title={getOptionForDirection(t`Next chapter`, t`Previous chapter`, readerThemeDirection)} title={getOptionForDirection(t`Next chapter`, t`Previous chapter`, readerThemeDirection)}
onClick={() => { onClick={() => {