Fix invalid import
This commit is contained in:
parent
a17e0adf44
commit
b590636303
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Reference in a new issue