|
|
@@ -6,11 +6,6 @@ import { v7 as uuidV7 } from 'uuid';
|
|
|
import { useNextThemes } from '~/stores-universal/use-next-themes';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
-const logger = loggerFactory('growi:features:mermaid:MermaidViewer');
|
|
|
-import { v7 as uuidV7 } from 'uuid';
|
|
|
-
|
|
|
-import loggerFactory from '~/utils/logger';
|
|
|
-
|
|
|
const logger = loggerFactory('growi:features:mermaid:MermaidViewer');
|
|
|
|
|
|
type MermaidViewerProps = {
|
|
|
@@ -25,7 +20,7 @@ export const MermaidViewer = React.memo((props: MermaidViewerProps): JSX.Element
|
|
|
const ref = useRef<HTMLDivElement>(null);
|
|
|
|
|
|
useEffect(() => {
|
|
|
- (async () => {
|
|
|
+ (async() => {
|
|
|
if (ref.current != null && value != null) {
|
|
|
mermaid.initialize({
|
|
|
theme: isDarkMode ? 'dark' : undefined,
|