Fix compile errors
This commit is contained in:
1 file changed
+3
-1
@@ -9,7 +9,7 @@ import { Suspense, useState } from 'react'
|
|||||||
|
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import { faFile } from '@fortawesome/free-regular-svg-icons'
|
import { faFile } from '@fortawesome/free-regular-svg-icons'
|
||||||
import Editor from './components/components/Editor'
|
import dynamic from 'next/dynamic'
|
||||||
|
|
||||||
function Editor_Layout_Sidebar () {
|
function Editor_Layout_Sidebar () {
|
||||||
const [projectFolder, setProjectFolder] = useState<string>(
|
const [projectFolder, setProjectFolder] = useState<string>(
|
||||||
@@ -41,6 +41,8 @@ export default function Editor_Layout ({
|
|||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode
|
||||||
}) {
|
}) {
|
||||||
|
const Editor = dynamic(() => import('./components/components/Editor'), { ssr: false })
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className='flex'>
|
<div className='flex'>
|
||||||
|
|||||||
Reference in new issue
Block a user