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 ads from editor

AykutSarac5bc90f75c7a7
diff --git a/src/components/CarbonAds/index.tsx b/src/components/CarbonAds/index.tsx
index 087422a1..a92cce39 100644
--- a/src/components/CarbonAds/index.tsx
+++ b/src/components/CarbonAds/index.tsx
@@ -62,9 +62,11 @@ export const CarbonAds: React.FC<{ editor?: boolean }> = ({
return (
<StyledWrapper editor={editor} id="carbon-wrapper">
- <StyledCloseBtn onClick={() => setIsHidden(true)}>
- <IoMdClose color="white" size="15" />
- </StyledCloseBtn>
+ {editor && (
+ <StyledCloseBtn onClick={() => setIsHidden(true)}>
+ <IoMdClose color="white" size="15" />
+ </StyledCloseBtn>
+ )}
<Script
type="text/javascript"
src="https://cdn.carbonads.com/carbon.js?serve=CE7IPKQL&placement=jsonvisiocom"
diff --git a/src/containers/Editor/JsonEditor/index.tsx b/src/containers/Editor/JsonEditor/index.tsx
index 5ada7a16..fedec3ff 100644
--- a/src/containers/Editor/JsonEditor/index.tsx
+++ b/src/containers/Editor/JsonEditor/index.tsx
@@ -88,7 +88,6 @@ export const JsonEditor: React.FC = () => {
loading={<Loading message="Loading Editor..." />}
onChange={(value) => setValue(value as string)}
/>
- <CarbonAds editor />
</StyledWrapper>
</StyledEditorWrapper>
);