✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
update loading messages
Aykut Saraçda5338889cd6
diff --git a/src/components/Loading/index.tsx b/src/components/Loading/index.tsxindex a6b9f16a..bd3d7ec5 100644--- a/src/components/Loading/index.tsx+++ b/src/components/Loading/index.tsx@@ -1,6 +1,10 @@import React from "react";import styled from "styled-components";+interface LoadingProps {+ message?: string;+}+const StyledLoading = styled.div`position: fixed;top: 0;@@ -31,13 +35,15 @@ const StyledMessage = styled.div`font-weight: 500;`;-export const Loading: React.FC = () => {+export const Loading: React.FC<LoadingProps> = ({ message }) => {return (<StyledLoading><StyledLogo><StyledText>JSON</StyledText> Visio</StyledLogo>- <StyledMessage>Preparing the environment for you...</StyledMessage>+ <StyledMessage>+ {message ?? "Preparing the environment for you..."}+ </StyledMessage></StyledLoading>);};diff --git a/src/pages/editor/index.tsx b/src/pages/editor/index.tsxindex 0754705f..c99c089d 100644--- a/src/pages/editor/index.tsx+++ b/src/pages/editor/index.tsx@@ -12,12 +12,12 @@ import { Loading } from "src/components/Loading";const JsonEditor = dynamic(() => import("src/containers/JsonEditor"), {ssr: false,- loading: () => <Loading />,+ loading: () => <Loading message="Loading Editor..." />,});const Sidebar = dynamic(() => import("src/components/Sidebar"), {ssr: false,- loading: () => <Loading />,+ loading: () => <Loading message="Loading Sidebar..." />,});const StyledPageWrapper = styled.div`