Skip to content

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

update upgrade buttons

AykutSarac0494d7f0707a
diff --git a/src/features/editor/Toolbar/index.tsx b/src/features/editor/Toolbar/index.tsx
index 588130b6..5b74d622 100644
--- a/src/features/editor/Toolbar/index.tsx
+++ b/src/features/editor/Toolbar/index.tsx
@@ -4,7 +4,6 @@ import styled from "styled-components";
import toast from "react-hot-toast";
import { AiOutlineFullscreen } from "react-icons/ai";
import { FiDownload } from "react-icons/fi";
-import { LuCrown } from "react-icons/lu";
import { type FileFormat, formats } from "src/enums/file.enum";
import { SearchInput } from "src/features/editor/Toolbar/SearchInput";
import { JSONCrackLogo } from "src/layout/JsonCrackLogo";
@@ -87,16 +86,16 @@ export const Toolbar = ({ isWidget = false }: ToolbarProps) => {
{!isWidget && (
<Button
component="a"
- href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=toolbar"
+ href="https://todiagram.com/?utm_source=jsoncrack&utm_medium=toolbar"
target="_blank"
- color="green"
+ variant="light"
+ color="gray"
size="compact-sm"
fz="12"
fw="600"
- leftSection={<LuCrown />}
mr="6"
>
- Unlock Pro Features
+ JSON Crack v2.0 🔥
</Button>
)}
<SearchInput />
diff --git a/src/features/modals/UpgradeModal/index.tsx b/src/features/modals/UpgradeModal/index.tsx
index c801413c..ba92c4ea 100644
--- a/src/features/modals/UpgradeModal/index.tsx
+++ b/src/features/modals/UpgradeModal/index.tsx
@@ -46,10 +46,11 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
</Button>
<Button
component="a"
- href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=upgrade_modal"
+ href="https://todiagram.com/?utm_source=jsoncrack&utm_medium=upgrade_modal"
target="_blank"
- color="red"
+ color="green"
size="md"
+ onClick={handleCloseModal}
leftSection={
<Image
src="https://todiagram.com/logo.svg"