mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-31 22:43:11 +02:00
[WIP] Encryption for secure values (#183)
This commit is contained in:
@@ -4,22 +4,16 @@ import { createFastMutation } from '../hooks/useFastMutation';
|
||||
import { showDialog } from '../lib/dialog';
|
||||
import { jotaiStore } from '../lib/jotai';
|
||||
|
||||
export const openWorkspaceSettings = createFastMutation<void, string, { openSyncMenu?: boolean }>({
|
||||
export const openWorkspaceSettings = createFastMutation<void, string>({
|
||||
mutationKey: ['open_workspace_settings'],
|
||||
async mutationFn({ openSyncMenu }) {
|
||||
async mutationFn() {
|
||||
const workspaceId = jotaiStore.get(activeWorkspaceIdAtom);
|
||||
showDialog({
|
||||
id: 'workspace-settings',
|
||||
title: 'Workspace Settings',
|
||||
size: 'md',
|
||||
render({ hide }) {
|
||||
return (
|
||||
<WorkspaceSettingsDialog
|
||||
workspaceId={workspaceId}
|
||||
hide={hide}
|
||||
openSyncMenu={openSyncMenu}
|
||||
/>
|
||||
);
|
||||
return <WorkspaceSettingsDialog workspaceId={workspaceId} hide={hide} />;
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user