Skip to content

Commit 17be432

Browse files
committed
feat: remove "beta" flag for new features
1 parent a4e03fd commit 17be432

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/helpers/projectHelper.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ export function getProjectNavLinks(project, projectId, renderFAQs) {
282282
navLinks.push(faqTab)
283283
}
284284

285-
const searchParams = new URLSearchParams(window.location.search)
286-
287-
if (searchParams.get('beta') === 'true' && hasPermission(PERMISSIONS.VIEW_PROJECT_SETTINGS)) {
285+
if (hasPermission(PERMISSIONS.VIEW_PROJECT_SETTINGS)) {
288286
navLinks.push({ label: 'Project Settings', to: `/projects/${projectId}/settings`, Icon: AccountSecurityIcon, iconClassName: 'stroke' })
289287
}
290288

src/projects/detail/containers/SecondaryToolBarContainer.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ const SecondaryToolBarContainer = ({
3838
navLinks.push({ label: 'Discussions', to: `/projects/${match.params.projectId}/discussions` })
3939
}
4040

41-
42-
const searchParams = new URLSearchParams(window.location.search)
43-
44-
if (searchParams.get('beta') === 'true' && hasPermission(PERMISSIONS.VIEW_PROJECT_SETTINGS) && project.version === 'v3') {
41+
if (hasPermission(PERMISSIONS.VIEW_PROJECT_SETTINGS) && project.version === 'v3') {
4542
navLinks.push({ label: 'Project Settings', to: `/projects/${match.params.projectId}/settings` })
4643
}
4744

0 commit comments

Comments
 (0)