refactor: split frontend application features
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
83d14d23a2
commit
5d7a57fd00
32 changed files with 2563 additions and 2433 deletions
24
frontend/src/components/form/FormActions.tsx
Normal file
24
frontend/src/components/form/FormActions.tsx
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { Link } from 'react-router-dom'
|
||||
import { ArrowRight } from 'lucide-react'
|
||||
|
||||
export function FormActions({
|
||||
saving,
|
||||
cancelTo,
|
||||
label,
|
||||
}: {
|
||||
saving: boolean
|
||||
cancelTo: string
|
||||
label: string
|
||||
}) {
|
||||
return (
|
||||
<div className="form-actions">
|
||||
<Link className="button ghost" to={cancelTo}>
|
||||
Cancel
|
||||
</Link>
|
||||
<button className="button primary" type="submit" disabled={saving}>
|
||||
{saving ? 'Saving…' : label}
|
||||
<ArrowRight size={17} />
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue