[WIP] Encryption for secure values (#183)

This commit is contained in:
Gregory Schier
2025-04-15 07:18:26 -07:00
committed by GitHub
parent e114a85c39
commit 2e55a1bd6d
208 changed files with 4063 additions and 28698 deletions

View File

@@ -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} />;
},
});
},