fix issue where user cant cancel caldav dialog
This commit is contained in:
parent
a15d05be86
commit
420839bcf5
1 changed files with 7 additions and 2 deletions
|
@ -234,7 +234,7 @@ export default function Home({ integrations }: Props) {
|
||||||
|
|
||||||
const ConnectCalDavServerDialog = ({ isOpen }) => {
|
const ConnectCalDavServerDialog = ({ isOpen }) => {
|
||||||
return (
|
return (
|
||||||
<Dialog open={isOpen}>
|
<Dialog open={isOpen} onOpenChange={(isOpen) => setIsAddCalDavIntegrationDialogOpen(isOpen)}>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogHeader
|
<DialogHeader
|
||||||
title="Connect to CalDav Server"
|
title="Connect to CalDav Server"
|
||||||
|
@ -252,7 +252,12 @@ export default function Home({ integrations }: Props) {
|
||||||
className="flex justify-center py-2 px-4 border border-transparent rounded-sm shadow-sm text-sm font-medium text-white bg-neutral-900 hover:bg-neutral-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-neutral-900">
|
className="flex justify-center py-2 px-4 border border-transparent rounded-sm shadow-sm text-sm font-medium text-white bg-neutral-900 hover:bg-neutral-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-neutral-900">
|
||||||
Save
|
Save
|
||||||
</button>
|
</button>
|
||||||
<DialogClose as="button" className="btn btn-white mx-2">
|
<DialogClose
|
||||||
|
onClick={() => {
|
||||||
|
setIsAddCalDavIntegrationDialogOpen(false);
|
||||||
|
}}
|
||||||
|
as="button"
|
||||||
|
className="btn btn-white mx-2">
|
||||||
Cancel
|
Cancel
|
||||||
</DialogClose>
|
</DialogClose>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue