refactor: remove unused notification permission hook and related code
This commit is contained in:
@@ -2,12 +2,10 @@ import {
|
||||
useGlobalLogData,
|
||||
clearGlobalLogs,
|
||||
LogLevel,
|
||||
ILogItem,
|
||||
} from "@/services/global-log-service";
|
||||
|
||||
// 为了向后兼容,导出相同的类型
|
||||
export type { LogLevel };
|
||||
export type { ILogItem };
|
||||
|
||||
export const useLogData = useGlobalLogData;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ const cleanupConnections = async (previousProxy: string) => {
|
||||
}
|
||||
};
|
||||
|
||||
export interface ProxySelectionOptions {
|
||||
interface ProxySelectionOptions {
|
||||
onSuccess?: () => void;
|
||||
onError?: (error: any) => void;
|
||||
enableConnectionCleanup?: boolean;
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
import { setupNotificationPermission } from "../utils/notification-permission";
|
||||
import { useEffect } from "react";
|
||||
|
||||
export function useNotificationPermission() {
|
||||
useEffect(() => {
|
||||
setupNotificationPermission();
|
||||
}, []);
|
||||
}
|
||||
Reference in New Issue
Block a user