Skip to content

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

fix ads script

AykutSarac2e83dcb27e14
diff --git a/src/components/CarbonAds/index.tsx b/src/components/CarbonAds/index.tsx
index 4271bed3..1fa876ef 100644
--- a/src/components/CarbonAds/index.tsx
+++ b/src/components/CarbonAds/index.tsx
@@ -1,18 +1,19 @@
import React from "react";
+import styled from "styled-components";
-const isDevelopment = process.env.NODE_ENV === "development";
+const StyledWrapper = styled.div`
+ width: 100%;
+ height: 100%;
+`;
export const CarbonAds = () => {
- if (isDevelopment) return null;
-
return (
- <>
+ <StyledWrapper>
<script
- async
type="text/javascript"
src="//cdn.carbonads.com/carbon.js?serve=CE7IPKQL&placement=jsonvisiocom"
id="_carbonads_js"
></script>
- </>
+ </StyledWrapper>
);
};