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

@ -12,9 +12,9 @@ export default ({ meta }: { meta: Record<string, unknown> }) => {
<pre className={'bg-gray-900 rounded p-2 overflow-x-scroll font-mono text-sm leading-relaxed'}>
{JSON.stringify(meta, null, 2)}
</pre>
<Dialog.Buttons>
<Dialog.Footer>
<Button.Text onClick={() => setOpen(false)}>Close</Button.Text>
</Dialog.Buttons>
</Dialog.Footer>
</Dialog>
<button
aria-describedby={'View additional event metadata'}