mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:48:28 +02:00
Fix workspace creation dialog
This commit is contained in:
@@ -27,7 +27,7 @@ export function CreateWorkspaceDialog({ hide }: Props) {
|
|||||||
hide();
|
hide();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<PlainInput label="Workspace Name" defaultValue={name} onChange={setName} />
|
<PlainInput require label="Workspace Name" defaultValue={name} onChange={setName} />
|
||||||
|
|
||||||
<MarkdownEditor
|
<MarkdownEditor
|
||||||
name="workspace-description"
|
name="workspace-description"
|
||||||
@@ -47,7 +47,7 @@ export function CreateWorkspaceDialog({ hide }: Props) {
|
|||||||
onChange={({ filePath }) => setSettingSyncDir(filePath)}
|
onChange={({ filePath }) => setSettingSyncDir(filePath)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button type="submit">Create Workspace</Button>
|
<Button type="submit" color="primary" className="ml-auto">Create Workspace</Button>
|
||||||
</VStack>
|
</VStack>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ export function PlainInput({
|
|||||||
className={classNames(commonClassName, 'h-auto')}
|
className={classNames(commonClassName, 'h-auto')}
|
||||||
onFocus={handleFocus}
|
onFocus={handleFocus}
|
||||||
onBlur={handleBlur}
|
onBlur={handleBlur}
|
||||||
|
required={require}
|
||||||
autoFocus={autoFocus}
|
autoFocus={autoFocus}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
onKeyDownCapture={onKeyDownCapture}
|
onKeyDownCapture={onKeyDownCapture}
|
||||||
|
|||||||
Reference in New Issue
Block a user