Bladeren bron

update default value

AykutSarac 3 jaren geleden
bovenliggende
commit
f3b9bf446e
1 gewijzigde bestanden met toevoegingen van 25 en 12 verwijderingen
  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,
   },
 ];