浏览代码

implement HOC context

AykutSarac 3 年之前
父节点
当前提交
b6fc8d7ef4
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/pages/editor/index.tsx

+ 4 - 1
src/pages/editor/index.tsx

@@ -1,6 +1,7 @@
 import React from "react";
 import Head from "next/head";
 import { Editor } from "src/containers/Editor";
+import { WithConfig } from "src/hocs/config";
 
 const EditorPage: React.FC = () => {
   return (
@@ -8,7 +9,9 @@ const EditorPage: React.FC = () => {
       <Head>
         <title>Editor | JSON Visio</title>
       </Head>
-      <Editor />
+      <WithConfig>
+        <Editor />
+      </WithConfig>
     </>
   );
 };