Make shelf buttons clickable and add to Home

This commit is contained in:
2023-05-30 21:10:05 +00:00
parent 3d6666cc40
commit 9ec850abfe
4 changed files with 40 additions and 9 deletions
+5 -5
View File
@@ -95,19 +95,19 @@ function EditStorage(props) {
return (
<div>
<Header size='medium'>Edit Storage</Header>
<Header size='medium'>Edit Storage {storage.shelf_id}</Header>
<Form onSubmit={handleSubmit}>
<Form.Button floated='right' onClick={saveAndNext} loading={loading} error={error.non_field_errors}>
Save and edit next
</Form.Button>
<StorageEditor token={token} input={input} setInput={setInput} error={error} />
<Form.Group widths='equal'>
<Form.Button loading={loading} error={error.non_field_errors}>
Save
</Form.Button>
<Form.Button floated='right' onClick={saveAndNext} loading={loading} error={error.non_field_errors}>
Save and edit next
</Form.Button>
</Form.Group>
{success && <div>Success!</div>}
</Form>