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: update editor path for premium

AykutSaracc1983f603772
diff --git a/src/layout/Navbar/index.tsx b/src/layout/Navbar/index.tsx
index 1f10641c..cf0c93d5 100644
--- a/src/layout/Navbar/index.tsx
+++ b/src/layout/Navbar/index.tsx
@@ -59,6 +59,7 @@ const Right = styled.div`
export const Navbar = () => {
const hasSession = useUser(state => !!state.user);
+ const premium = useUser(state => !!state.premium);
const [opened, { toggle }] = useDisclosure();
React.useEffect(() => {
@@ -104,6 +105,7 @@ export const Navbar = () => {
</Button>
<Button
component={Link}
+ prefetch={false}
href="/docs"
variant="subtle"
color="gray"
@@ -188,7 +190,8 @@ export const Navbar = () => {
</Button>
<Button
component={Link}
- href="/editor"
+ prefetch={false}
+ href={premium ? "https://app.jsoncrack.com/editor" : "/editor"}
color="dark"
className="hide-mobile"
visibleFrom="sm"