mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-02-18 02:55:51 +00:00
Set submit type in submit buttons
This commit is contained in:
parent
0a7a606541
commit
3d6ea5cf7c
@ -73,7 +73,7 @@ const CreateServer: FCWithDeps<CreateServerProps, CreateServerDeps> = ({ servers
|
|||||||
{!hasServers && (
|
{!hasServers && (
|
||||||
<ImportServersBtn tooltipPlacement="top" onImport={setServersImported} onError={setErrorImporting} />
|
<ImportServersBtn tooltipPlacement="top" onImport={setServersImported} onError={setErrorImporting} />
|
||||||
)}
|
)}
|
||||||
{hasServers && <Button type="button" variant="secondary" onClick={goBack}>Cancel</Button>}
|
{hasServers && <Button variant="secondary" onClick={goBack}>Cancel</Button>}
|
||||||
<Button type="submit">Create server</Button>
|
<Button type="submit">Create server</Button>
|
||||||
</ServerForm>
|
</ServerForm>
|
||||||
|
|
||||||
|
|||||||
@ -44,8 +44,8 @@ const EditServer: FCWithDeps<EditServerProps, EditServerDeps> = withSelectedServ
|
|||||||
initialValues={selectedServer}
|
initialValues={selectedServer}
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
<Button type="button" variant="secondary" onClick={goBack}>Cancel</Button>
|
<Button variant="secondary" onClick={goBack}>Cancel</Button>
|
||||||
<Button>Save</Button>
|
<Button type="submit">Save</Button>
|
||||||
</ServerForm>
|
</ServerForm>
|
||||||
</NoMenuLayout>
|
</NoMenuLayout>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -84,13 +84,7 @@ const ImportServersBtn: FCWithDeps<ImportServersBtnConnectProps, ImportServersBt
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button variant="secondary" id="importBtn" className={className} onClick={() => ref.current?.click()}>
|
||||||
type="button"
|
|
||||||
variant="secondary"
|
|
||||||
id="importBtn"
|
|
||||||
className={className}
|
|
||||||
onClick={() => ref.current?.click()}
|
|
||||||
>
|
|
||||||
<FontAwesomeIcon icon={importIcon} fixedWidth /> {children ?? 'Import from file'}
|
<FontAwesomeIcon icon={importIcon} fixedWidth /> {children ?? 'Import from file'}
|
||||||
</Button>
|
</Button>
|
||||||
<UncontrolledTooltip placement={tooltipPlacement} target="importBtn">
|
<UncontrolledTooltip placement={tooltipPlacement} target="importBtn">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user