fix(projects): separate registration from workspace setup
Adding or cloning a project now registers it and opens workspace setup instead of creating a workspace implicitly. Keep Add Project independently mounted from Search so closing one cannot control the other.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { AddProjectFlow } from "@/components/add-project-flow";
|
||||
import { useAddProjectFlowStore } from "@/stores/add-project-flow-store";
|
||||
|
||||
export function AddProjectFlowHost() {
|
||||
const request = useAddProjectFlowStore((state) => state.request);
|
||||
const close = useAddProjectFlowStore((state) => state.close);
|
||||
|
||||
if (!request) return null;
|
||||
|
||||
return <AddProjectFlow key={request.id} request={request} onClose={close} />;
|
||||
}
|
||||
Reference in New Issue
Block a user