Skip to content

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

remove premium node limit

AykutSarace393af49a2b7
diff --git a/src/components/Graph/index.tsx b/src/components/Graph/index.tsx
index ce44ef3a..fe9b22ef 100644
--- a/src/components/Graph/index.tsx
+++ b/src/components/Graph/index.tsx
@@ -7,7 +7,6 @@ import useGraph from "src/store/useGraph";
import useUser from "src/store/useUser";
import { Loading } from "../Loading";
import { ErrorView } from "./ErrorView";
-import { PremiumView } from "./PremiumView";
interface GraphProps {
isWidget?: boolean;
@@ -141,11 +140,7 @@ export const Graph = ({ isWidget = false, openNodeModal }: GraphProps) => {
[]
);
- if (nodes.length > 8_000) return <ErrorView />;
-
- if (nodes.length > 1_000 && !isWidget) {
- if (!isPremium()) return <PremiumView />;
- }
+ if (nodes.length > 6_000) return <ErrorView />;
return (
<>
diff --git a/src/components/MonacoEditor/index.tsx b/src/components/MonacoEditor/index.tsx
index c8096651..b36b27e5 100644
--- a/src/components/MonacoEditor/index.tsx
+++ b/src/components/MonacoEditor/index.tsx
@@ -1,5 +1,6 @@
import React from "react";
import styled from "styled-components";
+import { Anchor, Paper, Text } from "@mantine/core";
import Editor, { loader, Monaco } from "@monaco-editor/react";
import debounce from "lodash.debounce";
import { Loading } from "src/components/Loading";
@@ -106,8 +107,14 @@ export const MonacoEditor = () => {
loading={<Loading message="Loading Editor..." />}
beforeMount={handleEditorWillMount}
defaultLanguage="json"
- height="100%"
+ height="82vh"
/>
+ <Anchor href="https://editor.herowand.com">
+ <Paper p="sm" h="80px" shadow="md" withBorder>
+ <Text align="center">Visualize other data formats now...</Text>
+ <Text align="center">Herowand Editor</Text>
+ </Paper>
+ </Anchor>
</StyledWrapper>
);
};