From d0f886d0a946a827f3b9b1f09541c25e55fc4aeb Mon Sep 17 00:00:00 2001 From: Gitar Bot Date: Fri, 17 May 2024 19:49:11 +0000 Subject: [PATCH] [Gitar] Cleaning up Tsx files --- packages/front-end/components/Layout/Layout.tsx | 5 ++--- packages/front-end/pages/integrations/github/index.tsx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/front-end/components/Layout/Layout.tsx b/packages/front-end/components/Layout/Layout.tsx index de4eb5d372d6..3d99986d3ac8 100644 --- a/packages/front-end/components/Layout/Layout.tsx +++ b/packages/front-end/components/Layout/Layout.tsx @@ -203,9 +203,8 @@ const navlinks: SidebarLinkProps[] = [ name: "GitHub", href: "/integrations/github", path: /^integrations\/github/, - filter: ({ permissions, gb }) => - permissions.check("manageIntegrations") && - !!gb?.isOn("github-integration"), + filter: ({ permissions }) => + permissions.check("manageIntegrations"), }, { name: "Import your data", diff --git a/packages/front-end/pages/integrations/github/index.tsx b/packages/front-end/pages/integrations/github/index.tsx index 3711590a7dae..5904139e2b7b 100644 --- a/packages/front-end/pages/integrations/github/index.tsx +++ b/packages/front-end/pages/integrations/github/index.tsx @@ -14,7 +14,7 @@ const GitHubIntegrationPage: NextPage = () => { const code = router.query.code as string; const growthbook = useGrowthBook(); - if (!growthbook || growthbook.isOff("github-integration")) { + if (!growthbook) { router.replace("/404"); }