mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-17 17:04:16 +02:00
Fix invalid import
This commit is contained in:
@@ -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 New Issue
Block a user