File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/features/editor/Toolbar Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { FaBolt, FaGithub } from "react-icons/fa6";
88import { type FileFormat , formats } from "../../../enums/file.enum" ;
99import { JSONCrackLogo } from "../../../layout/JsonCrackLogo" ;
1010import useFile from "../../../store/useFile" ;
11- import { useModal } from "../../../store/useModal" ;
1211import { FileMenu } from "./FileMenu" ;
1312import { ToolsMenu } from "./ToolsMenu" ;
1413import { ViewMenu } from "./ViewMenu" ;
@@ -44,7 +43,6 @@ function fullscreenBrowser() {
4443}
4544
4645export const Toolbar = ( ) => {
47- const setVisible = useModal ( state => state . setVisible ) ;
4846 const setFormat = useFile ( state => state . setFormat ) ;
4947 const format = useFile ( state => state . format ) ;
5048
@@ -71,12 +69,15 @@ export const Toolbar = () => {
7169 < ViewMenu />
7270 < ToolsMenu />
7371 < Button
72+ component = { Link }
73+ href = "https://todiagram.com/editor?utm_source=jsoncrack& utm_medium = toolbar "
74+ target = "_blank"
75+ rel = "noopener"
7476 autoContrast
7577 color = "green"
7678 size = "compact-sm"
7779 fz = "12"
7880 fw = "600"
79- onClick = { ( ) => setVisible ( "UpgradeModal" , true ) }
8081 leftSection = { < FaBolt /> }
8182 >
8283 JSON Crack v2.0
You can’t perform that action at this time.
0 commit comments