mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
optimize settings store
This commit is contained in:
@@ -2,14 +2,14 @@ import isElectron from 'is-electron';
|
||||
import { useLocation } from 'react-router';
|
||||
|
||||
import { AppRoute } from '/@/renderer/router/routes';
|
||||
import { useGeneralSettings, useSidebarRightExpanded, useWindowSettings } from '/@/renderer/store';
|
||||
import { useSidebarRightExpanded, useSideQueueType, useWindowSettings } from '/@/renderer/store';
|
||||
import { Platform } from '/@/shared/types/types';
|
||||
|
||||
export const useShouldPadTitlebar = () => {
|
||||
const location = useLocation();
|
||||
const isSidebarExpanded = useSidebarRightExpanded();
|
||||
const isQueuePage = location.pathname === AppRoute.NOW_PLAYING;
|
||||
const { sideQueueType } = useGeneralSettings();
|
||||
const sideQueueType = useSideQueueType();
|
||||
const { windowBarStyle } = useWindowSettings();
|
||||
|
||||
const conditions = [
|
||||
|
||||
Reference in New Issue
Block a user