Fix invalid import

This commit is contained in:
jeffvli 2023-03-31 05:06:54 -07:00
parent a17e0adf44
commit b590636303

View file

@ -1,14 +1,14 @@
import { useLocation } from 'react-router'; import { useLocation } from 'react-router';
import { AppRoute } from '/@/renderer/router/routes'; import { AppRoute } from '/@/renderer/router/routes';
import { useSidebarRightExpanded } from '/@/renderer/store'; import { useSidebarRightExpanded, useGeneralSettings, useWindowSettings } from '/@/renderer/store';
import { useGeneralSettings } from '/@/renderer/store/settings.store';
import { Platform } from '/@/renderer/types'; import { Platform } from '/@/renderer/types';
export const useShouldPadTitlebar = () => { export const useShouldPadTitlebar = () => {
const location = useLocation(); const location = useLocation();
const isSidebarExpanded = useSidebarRightExpanded(); const isSidebarExpanded = useSidebarRightExpanded();
const isQueuePage = location.pathname === AppRoute.NOW_PLAYING; const isQueuePage = location.pathname === AppRoute.NOW_PLAYING;
const { sideQueueType, windowBarStyle } = useGeneralSettings(); const { sideQueueType } = useGeneralSettings();
const { windowBarStyle } = useWindowSettings();
const conditions = [ const conditions = [
windowBarStyle === Platform.WEB, windowBarStyle === Platform.WEB,