website: render Carbon on client-side only

This commit is contained in:
Yangshun
2022-03-18 07:10:10 +08:00
parent 0d2c459289
commit 63390da383

View File

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