Update dialog logic to support defining buttons/icon from anywhere
This commit is contained in:
parent
48af9bced1
commit
7c4028f8f1
9 changed files with 182 additions and 121 deletions
|
@ -92,7 +92,7 @@ export default ({ className }: WithClassname) => {
|
|||
</Code>
|
||||
</p>
|
||||
</Form>
|
||||
<Dialog.Buttons>
|
||||
<Dialog.Footer>
|
||||
<Button.Text
|
||||
className={'w-full sm:w-auto'}
|
||||
onClick={() => {
|
||||
|
@ -105,7 +105,7 @@ export default ({ className }: WithClassname) => {
|
|||
<Button className={'w-full sm:w-auto'} onClick={submitForm}>
|
||||
Create
|
||||
</Button>
|
||||
</Dialog.Buttons>
|
||||
</Dialog.Footer>
|
||||
</Dialog>
|
||||
)}
|
||||
</Formik>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue