소스 검색

remove sidebar lazy load

AykutSarac 3 년 전
부모
커밋
a3f0833be5
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      src/containers/Editor/index.tsx

+ 1 - 5
src/containers/Editor/index.tsx

@@ -1,5 +1,6 @@
 import React from "react";
 import dynamic from "next/dynamic";
+import { Sidebar } from "src/components/Sidebar";
 import { LiveEditor } from "src/containers/LiveEditor";
 import { Loading } from "src/components/Loading";
 import { Incompatible } from "src/containers/Incompatible";
@@ -12,11 +13,6 @@ const JsonEditor = dynamic(() => import("src/containers/JsonEditor"), {
   loading: () => <Loading message="Loading Editor..." />,
 });
 
-const Sidebar = dynamic(() => import("src/components/Sidebar"), {
-  ssr: false,
-  loading: () => <Loading message="Loading Sidebar..." />,
-});
-
 export const Editor: React.FC = () => {
   const {
     states: { settings },