From 63390da3833cec2f4857be63ba28b669708bc0fc Mon Sep 17 00:00:00 2001 From: Yangshun Date: Fri, 18 Mar 2022 07:10:10 +0800 Subject: [PATCH] website: render Carbon on client-side only --- website/src/components/CarbonAd/index.js | 91 +++++++++++++----------- 1 file changed, 48 insertions(+), 43 deletions(-) diff --git a/website/src/components/CarbonAd/index.js b/website/src/components/CarbonAd/index.js index 2801eed6..63b5a6e9 100644 --- a/website/src/components/CarbonAd/index.js +++ b/website/src/components/CarbonAd/index.js @@ -1,51 +1,56 @@ import React from 'react'; +import BrowserOnly from '@docusaurus/BrowserOnly'; export default React.memo(() => { return ( -
-