refactor(flows): reverse the order of flows to display the latest ones first
refactor(MainPage): comment out code that adds "From Store" sidebar navigation item feat(flow): add date_created property to FlowType to track the creation date of flows
This commit is contained in:
parent
af29139af3
commit
75e144dd26
3 changed files with 8 additions and 6 deletions
|
|
@ -32,6 +32,7 @@ export default function FlowsComponent() {
|
|||
>
|
||||
{flows
|
||||
.filter((flow) => !flow.is_component)
|
||||
.reverse()
|
||||
.map((flow, idx) => (
|
||||
<CardComponent
|
||||
key={idx}
|
||||
|
|
|
|||
|
|
@ -33,12 +33,12 @@ export default function HomePage(): JSX.Element {
|
|||
},
|
||||
];
|
||||
|
||||
if (hasStore) {
|
||||
sidebarNavItems.push({
|
||||
title: "From Store",
|
||||
href: "/from-store",
|
||||
});
|
||||
}
|
||||
// if (hasStore) {
|
||||
// sidebarNavItems.push({
|
||||
// title: "From Store",
|
||||
// href: "/from-store",
|
||||
// });
|
||||
// }
|
||||
|
||||
// Set a null id
|
||||
useEffect(() => {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ export type FlowType = {
|
|||
style?: FlowStyleType;
|
||||
is_component?: boolean;
|
||||
parent?: string;
|
||||
date_created?: string;
|
||||
};
|
||||
export type NodeType = {
|
||||
id: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue