Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

feat: add close button to upgrade modal

AykutSarac6608948e2e15
diff --git a/src/containers/Modals/UpgradeModal/index.tsx b/src/containers/Modals/UpgradeModal/index.tsx
index 187df955..6ed1a643 100644
--- a/src/containers/Modals/UpgradeModal/index.tsx
+++ b/src/containers/Modals/UpgradeModal/index.tsx
@@ -10,6 +10,7 @@ import {
ThemeIcon,
AspectRatio,
Paper,
+ CloseButton,
} from "@mantine/core";
import { LuCrown, LuTrendingUp } from "react-icons/lu";
@@ -27,9 +28,12 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
overlayProps={{ blur: 1 }}
>
<Stack gap="24" px="40" py="20">
- <Title c="bright" fw="500" fz="24">
- Upgrade to unlock all features
- </Title>
+ <Flex justify="space-between">
+ <Title c="bright" fw="500" fz="24">
+ Upgrade to unlock all features
+ </Title>
+ <CloseButton onClick={onClose} />
+ </Flex>
<Flex gap="20">
<ThemeIcon color="green" variant="light" size="xl" radius="xl">
<LuCrown size="20" />