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