mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
improvement(oauth): reordered oauth modal (#3368)
This commit is contained in:
+25
-25
@@ -1138,31 +1138,6 @@ export function CredentialsManager({ onOpenChange }: CredentialsManagerProps) {
|
||||
|
||||
{createType === 'oauth' ? (
|
||||
<div className='flex flex-col gap-[10px]'>
|
||||
<div>
|
||||
<Label>
|
||||
Display name<span className='ml-1'>*</span>
|
||||
</Label>
|
||||
<Input
|
||||
value={createDisplayName}
|
||||
onChange={(event) => setCreateDisplayName(event.target.value)}
|
||||
placeholder='Secret name'
|
||||
autoComplete='off'
|
||||
data-lpignore='true'
|
||||
className='mt-[6px]'
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Label>Description</Label>
|
||||
<Textarea
|
||||
value={createDescription}
|
||||
onChange={(event) => setCreateDescription(event.target.value)}
|
||||
placeholder='Optional description'
|
||||
maxLength={500}
|
||||
autoComplete='off'
|
||||
data-lpignore='true'
|
||||
className='mt-[6px] min-h-[80px] resize-none'
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Label>Account</Label>
|
||||
<div className='mt-[6px]'>
|
||||
@@ -1202,6 +1177,31 @@ export function CredentialsManager({ onOpenChange }: CredentialsManagerProps) {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<Label>
|
||||
Display name<span className='ml-1'>*</span>
|
||||
</Label>
|
||||
<Input
|
||||
value={createDisplayName}
|
||||
onChange={(event) => setCreateDisplayName(event.target.value)}
|
||||
placeholder='Secret name'
|
||||
autoComplete='off'
|
||||
data-lpignore='true'
|
||||
className='mt-[6px]'
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Label>Description</Label>
|
||||
<Textarea
|
||||
value={createDescription}
|
||||
onChange={(event) => setCreateDescription(event.target.value)}
|
||||
placeholder='Optional description'
|
||||
maxLength={500}
|
||||
autoComplete='off'
|
||||
data-lpignore='true'
|
||||
className='mt-[6px] min-h-[80px] resize-none'
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div className='flex flex-col gap-[10px]'>
|
||||
|
||||
Reference in New Issue
Block a user