feat: switch to new dialog gutter
This commit is contained in:
parent
af248df648
commit
c24cd34925
15 changed files with 29 additions and 29 deletions
|
|
@ -32,7 +32,7 @@ export default function Delete({ machine, state }: DeleteProps) {
|
|||
>
|
||||
<input type="hidden" name="_method" value="delete" />
|
||||
<input type="hidden" name="id" value={machine.id} />
|
||||
<div className="mt-6 flex justify-end gap-2 mt-6">
|
||||
<Dialog.Gutter>
|
||||
<Dialog.Action variant="cancel" onPress={close}>
|
||||
Cancel
|
||||
</Dialog.Action>
|
||||
|
|
@ -48,7 +48,7 @@ export default function Delete({ machine, state }: DeleteProps) {
|
|||
>
|
||||
Remove
|
||||
</Dialog.Action>
|
||||
</div>
|
||||
</Dialog.Gutter>
|
||||
</Form>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export default function Expire({ machine, state }: ExpireProps) {
|
|||
>
|
||||
<input type="hidden" name="_method" value="expire" />
|
||||
<input type="hidden" name="id" value={machine.id} />
|
||||
<div className="mt-6 flex justify-end gap-2 mt-6">
|
||||
<Dialog.Gutter>
|
||||
<Dialog.Action variant="cancel" onPress={close}>
|
||||
Cancel
|
||||
</Dialog.Action>
|
||||
|
|
@ -47,7 +47,7 @@ export default function Expire({ machine, state }: ExpireProps) {
|
|||
>
|
||||
Expire
|
||||
</Dialog.Action>
|
||||
</div>
|
||||
</Dialog.Gutter>
|
||||
</Form>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -55,14 +55,14 @@ export default function Move({ machine, state, magic, users }: MoveProps) {
|
|||
.
|
||||
</p>
|
||||
) : undefined}
|
||||
<div className="mt-6 flex justify-end gap-2 mt-6">
|
||||
<Dialog.Gutter>
|
||||
<Dialog.Action variant="cancel" onPress={close}>
|
||||
Cancel
|
||||
</Dialog.Action>
|
||||
<Dialog.Action variant="confirm" onPress={close}>
|
||||
Change owner
|
||||
</Dialog.Action>
|
||||
</div>
|
||||
</Dialog.Gutter>
|
||||
</Form>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ export default function New(data: NewProps) {
|
|||
</Select.Item>
|
||||
))}
|
||||
</Select>
|
||||
<div className="mt-6 flex justify-end gap-2 mt-6">
|
||||
<Dialog.Gutter>
|
||||
<Dialog.Action variant="cancel" onPress={close}>
|
||||
Cancel
|
||||
</Dialog.Action>
|
||||
|
|
@ -96,7 +96,7 @@ export default function New(data: NewProps) {
|
|||
)}
|
||||
Register
|
||||
</Dialog.Action>
|
||||
</div>
|
||||
</Dialog.Gutter>
|
||||
</fetcher.Form>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -62,14 +62,14 @@ export default function Rename({ machine, state, magic }: RenameProps) {
|
|||
</p>
|
||||
)
|
||||
) : undefined}
|
||||
<div className="mt-6 flex justify-end gap-2 mt-6">
|
||||
<Dialog.Gutter>
|
||||
<Dialog.Action variant="cancel" onPress={close}>
|
||||
Cancel
|
||||
</Dialog.Action>
|
||||
<Dialog.Action variant="confirm" onPress={close}>
|
||||
Rename
|
||||
</Dialog.Action>
|
||||
</div>
|
||||
</Dialog.Gutter>
|
||||
</Form>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ export default function Routes({ machine, routes, state }: RoutesProps) {
|
|||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="mt-6 flex justify-end gap-2 mt-6">
|
||||
<Dialog.Gutter>
|
||||
<Dialog.Action
|
||||
variant="cancel"
|
||||
isDisabled={fetcher.state === 'submitting'}
|
||||
|
|
@ -167,7 +167,7 @@ export default function Routes({ machine, routes, state }: RoutesProps) {
|
|||
>
|
||||
Close
|
||||
</Dialog.Action>
|
||||
</div>
|
||||
</Dialog.Gutter>
|
||||
</>
|
||||
)}
|
||||
</Dialog.Panel>
|
||||
|
|
|
|||
|
|
@ -130,14 +130,14 @@ export default function Tags({ machine, state }: TagsProps) {
|
|||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-6 flex justify-end gap-2 mt-6">
|
||||
<Dialog.Gutter>
|
||||
<Dialog.Action variant="cancel" onPress={close}>
|
||||
Cancel
|
||||
</Dialog.Action>
|
||||
<Dialog.Action variant="confirm" onPress={close}>
|
||||
Save
|
||||
</Dialog.Action>
|
||||
</div>
|
||||
</Dialog.Gutter>
|
||||
</Form>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue