浏览代码

update default value

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

+ 25 - 12
src/pages/editor/JsonEditor/index.tsx

@@ -24,23 +24,36 @@ const StyledJSONInput = styled(JSONInput)`
 
 export const defaultValue = [
   {
-    author: "John Doe",
-    pseudonym: "J.D.",
-    books: [
+    Author: "J. K. Rowling.",
+    Genre: "Fantasy",
+    Characters: ["Hermione Granger", "Harry Potter", "Lord Voldemort", "MORE"],
+    Books: [
+      { title: "Philosopher's Stone", date: "1997" },
       {
-        title: "Book 1",
+        title: "Chamber of Secrets",
+        date: "1998",
       },
       {
-        title: "Book 2",
-        chapters: [
-          {
-            title: "No Way Home",
-            page: 256,
-          },
-        ],
+        title: "Prisoner of Azkaban",
+        date: "1999",
+      },
+      {
+        title: "Goblet of Fire",
+        date: "1999",
+      },
+      {
+        title: "Order of the Phoenix",
+        date: "2003",
+      },
+      {
+        title: "Half-Blood Prince",
+        date: "2005",
+      },
+      {
+        title: "Deathly Hallows",
+        date: "2007",
       },
     ],
-    age: 26,
   },
 ];