Skip to content

Commit 4ae7ebf

Browse files
committed
chore: add template-gallery experiment to toggle templates gallery
1 parent c761eec commit 4ae7ebf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

site/src/api/typesGenerated.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/pages/TemplatesPage/TemplatesPage.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@ export const TemplatesPage: FC = () => {
3232
templatesByOrganizationIdQuery.error ||
3333
examplesQuery.error ||
3434
templatesQuery.error;
35-
const multiOrgExperimentEnabled = experiments.includes("multi-organization");
35+
36+
// template gallery requires both experiments to be enabled.
37+
const templateGalleryExperimentEnabled =
38+
experiments.includes("multi-organization") &&
39+
experiments.includes("template-gallery");
3640

3741
return (
3842
<>
3943
<Helmet>
4044
<title>{pageTitle("Templates")}</title>
4145
</Helmet>
42-
{multiOrgExperimentEnabled ? (
46+
{templateGalleryExperimentEnabled ? (
4347
<MultiOrgTemplatesPageView
4448
templatesByOrg={templatesByOrg}
4549
examples={examplesQuery.data}

0 commit comments

Comments
 (0)