Fix lint problems

This commit is contained in:
Gregory Schier
2024-12-03 09:43:16 -08:00
parent 88bcfb9e66
commit 40f0f5387a
12 changed files with 30 additions and 15 deletions

View File

@@ -4,12 +4,12 @@ import { invokeCmd } from '../lib/tauri';
import { useActiveWorkspace } from './useActiveWorkspace';
import { useAppRoutes } from './useAppRoutes';
export function useOpenSettings() {
export function useOpenSettings(tab?: SettingsTab) {
const routes = useAppRoutes();
const workspace = useActiveWorkspace();
return useMutation({
mutationKey: ['open_settings'],
mutationFn: async (tab?: SettingsTab) => {
mutationFn: async () => {
if (workspace == null) return;
await invokeCmd('cmd_new_child_window', {