fix: add cancel button to dialogs
This commit is contained in:
parent
15e10334dc
commit
1cd970367e
2 changed files with 9 additions and 3 deletions
|
|
@ -111,15 +111,18 @@ function OpenImage({ close }: DialogProps) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<DialogFooter className="!justify-between items-center">
|
<DialogFooter className="items-center">
|
||||||
{imageDimensions.height > 384 && (
|
{imageDimensions.height > 384 && (
|
||||||
<div className="flex items-center gap-1 h-min">
|
<div className="flex items-center gap-1 h-min mr-auto">
|
||||||
<CircleAlertIcon className="text-red-400" size={22} />
|
<CircleAlertIcon className="text-red-400" size={22} />
|
||||||
<span className="text-red-400 text-sm">The height is above 384 blocks!</span>
|
<span className="text-red-400 text-sm">The height is above 384 blocks!</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Button type="submit" className="ml-auto" onClick={onSubmit}>
|
<Button variant="outline" onClick={close}>
|
||||||
|
Cancel
|
||||||
|
</Button>
|
||||||
|
<Button type="submit" onClick={onSubmit}>
|
||||||
Submit
|
Submit
|
||||||
</Button>
|
</Button>
|
||||||
</DialogFooter>
|
</DialogFooter>
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,9 @@ function SaveLitematic({ close }: DialogProps) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<DialogFooter>
|
<DialogFooter>
|
||||||
|
<Button variant="outline" onClick={close}>
|
||||||
|
Cancel
|
||||||
|
</Button>
|
||||||
<Button type="submit" onClick={onSubmit}>
|
<Button type="submit" onClick={onSubmit}>
|
||||||
Download
|
Download
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue