Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed Jan 6, 2025
1 parent e972f5e commit a9997f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/components/player/TrackInfo/ABSliderMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand All @@ -78,7 +74,7 @@ const ABSliderMenu = ({ song, closeMenu }: Props) => {
<GenericDialog
visible={dialogVisible}
title={t('SongOperations.abrepeat')}
onClose={toggleDialogVisible}
onClose={() => setDialogVisible(val => !val)}
onSubmit={onSubmit}
>
<ABSlider range={range} setRange={setRange} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/playlist/BiliSearch/SearchMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default ({
<Menu.Item
leadingIcon={Icons.MUSICFREE}
onPress={() => setDefaultSearch(SearchOptions.MUSICFREE)}
title={`MusicFree.${SearchOptions.MUSICFREE}`}
title={'MusicFree'}
/>
)}
{isAndroid && (
Expand Down

0 comments on commit a9997f5

Please sign in to comment.