Skip to content

Commit

Permalink
Added sample code for react flow
Browse files Browse the repository at this point in the history
  • Loading branch information
itsparser committed Feb 13, 2024
1 parent f542f8c commit c6f008f
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/components/flow/mock/ifCondition.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
export const IF_CONDITION = [
{
id: "fcb03ff7-4640-4afe-a05b-1d0e08ee9594",
execution_order: 1,
kind: "Reference",
type_field: "ActionGroup",
reference: "cb2f6a96-effe-4bc7-adae-c45578cd2a56",
parent_id: null,
case_id: "731453aa-95a5-4180-be0d-c211a1e92aad"
},
{
id: "fcb03ff7-4640-4afe-a05b-if",
execution_order: 2,
kind: "Reference",
type_field: "Condition",
reference: null,
parent_id: null,
case_id: "731453aa-95a5-4180-be0d-c211a1e92aad"
},
{
id: "fcb03ff7-4640-4afe-a05b-if-yes",
execution_order: 1,
kind: "Reference",
type_field: "YesCondition",
reference: null,
parent_id: "fcb03ff7-4640-4afe-a05b-if",
case_id: "731453aa-95a5-4180-be0d-c211a1e92aad"
},
{
id: "fcb03ff7-4640-4afe-a05b-if-no",
execution_order: 2,
kind: "Reference",
type_field: "NoCondition",
reference: null,
parent_id: "fcb03ff7-4640-4afe-a05b-if",
case_id: "731453aa-95a5-4180-be0d-c211a1e92aad"
},
{
id: "fcb03ff7-4640-4afe-a05b-sub-if",
execution_order: 1,
kind: "Reference",
type_field: "ActionGroup",
reference: "cb2f6a96-effe-4bc7-adae-c45578cd2a56",
parent_id: "fcb03ff7-4640-4afe-a05b-if-yes",
case_id: "731453aa-95a5-4180-be0d-c211a1e92aad"
}
];
1 change: 1 addition & 0 deletions src/components/flow/mock/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
6 changes: 6 additions & 0 deletions src/layouts/app/state.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { create } from "zustand";

export const useActiveMenu = create((set) => ({
activeMenu: "dashboard",
updateActiveMenu: (menu: string) => set({ activeMenu: menu })
}));
6 changes: 6 additions & 0 deletions src/stores/route.store.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { create } from "zustand";

export const orcaStore = create((set) => ({
appActiveMenu: "dashboard",
setAppActiveMenu: (menu: string) => set({ appActiveMenu: menu })
}));

0 comments on commit c6f008f

Please sign in to comment.