fix default layout

This commit is contained in:
AykutSarac 2022-02-04 14:17:20 +03:00
parent 4e44b26107
commit 93cd9f5c39
2 changed files with 2 additions and 2 deletions

View File

@ -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 = () => {

View File

@ -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);