From 61c8846400f1c074c73fe7ab9cc35c193b99fa87 Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Mon, 26 Feb 2024 23:24:19 -0500 Subject: [PATCH] org slug --- packages/frontend/src/layouts/ProjectSearch.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/layouts/ProjectSearch.tsx b/packages/frontend/src/layouts/ProjectSearch.tsx index 775f5ab5..c471ab5d 100644 --- a/packages/frontend/src/layouts/ProjectSearch.tsx +++ b/packages/frontend/src/layouts/ProjectSearch.tsx @@ -25,6 +25,12 @@ const ProjectSearch = () => { fetchUser(); }, []); + const fetchOrgSlug = useCallback(async () => { + const { organizations } = await client.getOrganizations(); + // TODO: Get the selected organization. This is temp + return organizations[0].slug; + }, []); + return (
@@ -38,7 +44,15 @@ const ProjectSearch = () => { }} />
-