Selaa lähdekoodia

fix default layout

AykutSarac 3 vuotta sitten
vanhempi
commit
93cd9f5c39
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      src/components/Sidebar/index.tsx
  2. 1 1
      src/containers/LiveEditor/FlowWrapper.tsx

+ 1 - 1
src/components/Sidebar/index.tsx

@@ -99,7 +99,7 @@ export const Sidebar = () => {
   const [_, setJson] = useLocalStorage("json", JSON.stringify(defaultValue));
   const [layout, setLayout] = useLocalStorage<"TB" | "BT" | "RL" | "LR">(
     "layout",
-    "TB"
+    "RL"
   );
 
   const handleClear = () => {

+ 1 - 1
src/containers/LiveEditor/FlowWrapper.tsx

@@ -21,7 +21,7 @@ const nodeTypes = {
 
 export const FlowWrapper: React.FC = () => {
   const [json] = useLocalStorage("json", JSON.stringify(defaultValue));
-  const [layout] = useLocalStorage("layout", "TB");
+  const [layout] = useLocalStorage("layout", "RL");
 
   const [elements, setElements] = React.useState<Elements>([]);
   const [rfInstance, setRfInstance] = React.useState<any>(null);