✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
set page names dynamically
AykutSarac76615cc34a16
diff --git a/src/containers/Editor/BottomBar.tsx b/src/containers/Editor/BottomBar.tsxindex bb4fb94b..edc8cf88 100644--- a/src/containers/Editor/BottomBar.tsx+++ b/src/containers/Editor/BottomBar.tsx@@ -1,4 +1,5 @@import React from "react";+import Head from "next/head";import { useRouter } from "next/router";import toast from "react-hot-toast";import {@@ -140,6 +141,11 @@ export const BottomBar = () => {return (<StyledBottomBar>+ {data?.name && (+ <Head>+ <title>{data.name} | JSON Crack</title>+ </Head>+ )}<StyledLeft><StyledBottomBarItem onClick={handleLoginClick}><VscAccount />diff --git a/src/pages/sign-in.tsx b/src/pages/sign-in.tsxindex 7cca2d52..036c8712 100644--- a/src/pages/sign-in.tsx+++ b/src/pages/sign-in.tsx@@ -1,4 +1,5 @@import React from "react";+import Head from "next/head";import Link from "next/link";import { useRouter } from "next/router";import { AiOutlineGithub, AiOutlineGoogle } from "react-icons/ai";@@ -35,8 +36,8 @@ const SignIn = () => {const isAuthenticated = useUser(state => state.isAuthenticated);React.useEffect(() => {- if (!isReady) checkSession();- if (isAuthenticated) replace("/editor");+ if (!isReady) checkSession();+ if (isAuthenticated) replace("/editor");}, [isReady, isAuthenticated, replace, checkSession]);const handleLoginClick = (provider: "github" | "google") => {@@ -45,6 +46,9 @@ const SignIn = () => {return (<>+ <Head>+ <title>Sign In | JSON Crack</title>+ </Head><Navbar /><StyledPageWrapper><StyledHeroSection>