Update dialog logic to support defining buttons/icon from anywhere

This commit is contained in:
DaneEveritt 2022-07-02 17:24:12 -04:00
parent 48af9bced1
commit 7c4028f8f1
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
9 changed files with 182 additions and 121 deletions

View file

@ -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>