From d29c1e02450f6c2d40e01c0cb9e0b22649ee1f68 Mon Sep 17 00:00:00 2001 From: pacholoamit Date: Sun, 22 Sep 2024 19:51:29 +0800 Subject: [PATCH] style: Use single quotes for string literals consistently --- src/providers/platform.provider.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/providers/platform.provider.tsx b/src/providers/platform.provider.tsx index 9d43fa84..d3ecd4b6 100644 --- a/src/providers/platform.provider.tsx +++ b/src/providers/platform.provider.tsx @@ -1,12 +1,12 @@ -import { createContext, useEffect, useState } from "react"; +import { createContext, useEffect, useState } from 'react'; -import ExclusionModal from "@/components/exclusion-modal"; -import useEffectAsync from "@/hooks/useEffectAsync"; -import useIsFirstRun from "@/hooks/useIsFirstRun"; -import { streams } from "@/lib"; -import store from "@/lib/store"; -import { getCurrentWindow as appWindow } from "webviewWindow"; -import { Platform, platform as obtainPlatform } from "@tauri-apps/plugin-os"; +import ExclusionModal from '@/components/exclusion-modal'; +import useEffectAsync from '@/hooks/useEffectAsync'; +import useIsFirstRun from '@/hooks/useIsFirstRun'; +import { streams } from '@/lib'; +import store from '@/lib/store'; +import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow'; +import { Platform, platform as obtainPlatform } from '@tauri-apps/plugin-os'; interface PlatformProviderProps { children: React.ReactNode; @@ -60,7 +60,7 @@ const PlatformProvider: React.FC = ({ children }) => { paddingLeft: 72, paddingTop: 4, onHeaderAreaClick: () => { - const window = appWindow(); + const window = getCurrentWebviewWindow(); window.startDragging(); }, });