website: render Carbon on client-side only

pull/265/head
Yangshun 3 years ago
parent 0d2c459289
commit 63390da383

@ -1,7 +1,10 @@
import React from 'react'; import React from 'react';
import BrowserOnly from '@docusaurus/BrowserOnly';
export default React.memo(() => { export default React.memo(() => {
return ( return (
<BrowserOnly>
{() => (
<div> <div>
<script <script
async async
@ -32,8 +35,8 @@ export default React.memo(() => {
className="carbon-text" className="carbon-text"
target="_blank" target="_blank"
rel="noopener sponsored"> rel="noopener sponsored">
What if Your Project Management Tool Was Fast and Intuitive? Try What if Your Project Management Tool Was Fast and Intuitive?
Shortcut (formerly Clubhouse). Try Shortcut (formerly Clubhouse).
</a> </a>
</span> </span>
<a <a
@ -47,5 +50,7 @@ export default React.memo(() => {
</div> </div>
)} )}
</div> </div>
)}
</BrowserOnly>
); );
}); });

Loading…
Cancel
Save