mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* chore: decouple ui dialog from AppRouter and Atoms * fix type e2e test * fix: import dialog from @calcom/ui/components/dialog * fix: remove log * fix unit test * fix * fix and move data-override-list test to features package --------- Co-authored-by: hbjORbj <[email protected]>
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
import { Dialog } from "@calcom/features/components/controlled-dialog";
|
|
import { APP_NAME } from "@calcom/lib/constants";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { Button } from "@calcom/ui/components/button";
|
|
import { DialogContent, DialogFooter } from "@calcom/ui/components/dialog";
|
|
|
|
interface IOverlayCalendarContinueModalProps {
|
|
open?: boolean;
|
|
onClose?: (state: boolean) => void;
|
|
onContinue: () => void;
|
|
}
|
|
|
|
export function OverlayCalendarContinueModal(props: IOverlayCalendarContinueModalProps) {
|
|
const { t } = useLocale();
|
|
return (
|
|
<>
|
|
<Dialog open={props.open} onOpenChange={props.onClose}>
|
|
<DialogContent
|
|
type="creation"
|
|
title={t("overlay_my_calendar")}
|
|
description={t("overlay_my_calendar_toc")}>
|
|
<div className="flex flex-col gap-2">
|
|
<Button
|
|
data-testid="overlay-calendar-continue-button"
|
|
onClick={() => {
|
|
props.onContinue();
|
|
}}
|
|
className="gap w-full items-center justify-center font-semibold"
|
|
StartIcon="calendar-search">
|
|
{t("continue_with", { appName: APP_NAME })}
|
|
</Button>
|
|
</div>
|
|
<DialogFooter>
|
|
{/* Agh modal hacks */}
|
|
<></>
|
|
</DialogFooter>
|
|
</DialogContent>
|
|
</Dialog>
|
|
</>
|
|
);
|
|
}
|