mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 20:52:00 +08:00
website: render Carbon on client-side only
This commit is contained in:
@ -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>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user