Workflow editor (#735)
Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
import { Outlet } from "react-router-dom";
|
||||
import { cn } from "@/util/utils";
|
||||
import { Outlet, useMatch } from "react-router-dom";
|
||||
|
||||
function WorkflowsPageLayout() {
|
||||
const match = useMatch("/workflows/:workflowPermanentId");
|
||||
|
||||
return (
|
||||
<main className="container mx-auto px-8">
|
||||
<main
|
||||
className={cn({
|
||||
"container mx-auto px-8": !match,
|
||||
})}
|
||||
>
|
||||
<Outlet />
|
||||
</main>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user