소스 검색

fix default layout

AykutSarac 3 년 전
부모
커밋
93cd9f5c39
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);