diff --git a/src/components/player/TrackInfo/ABSliderMenu.tsx b/src/components/player/TrackInfo/ABSliderMenu.tsx index 3aaa8e78..cd263447 100644 --- a/src/components/player/TrackInfo/ABSliderMenu.tsx +++ b/src/components/player/TrackInfo/ABSliderMenu.tsx @@ -57,13 +57,9 @@ const ABSliderMenu = ({ song, closeMenu }: Props) => { const setCurrentABRepeat = useNoxSetting(state => state.setCurrentABRepeat); const [range, setRange] = useState<[number, number]>([0, 1]); - const toggleDialogVisible = () => { + const onSubmit = () => { if (closeMenu) closeMenu(); setDialogVisible(val => !val); - }; - - const onSubmit = () => { - toggleDialogVisible(); setCurrentABRepeat(range); addABRepeat(song, range); }; @@ -78,7 +74,7 @@ const ABSliderMenu = ({ song, closeMenu }: Props) => { setDialogVisible(val => !val)} onSubmit={onSubmit} > diff --git a/src/components/playlist/BiliSearch/SearchMenu.tsx b/src/components/playlist/BiliSearch/SearchMenu.tsx index ace618a3..2d12b8ad 100644 --- a/src/components/playlist/BiliSearch/SearchMenu.tsx +++ b/src/components/playlist/BiliSearch/SearchMenu.tsx @@ -74,7 +74,7 @@ export default ({ setDefaultSearch(SearchOptions.MUSICFREE)} - title={`MusicFree.${SearchOptions.MUSICFREE}`} + title={'MusicFree'} /> )} {isAndroid && (