From 4e3c1ede0e8d1fac4f1dd4c2ff1e51aaa5241904 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Wed, 29 Mar 2023 17:00:26 +0200 Subject: [PATCH] misc: remove features page buttons Signed-off-by: Erik Michelson --- frontend/cypress/e2e/intro.spec.ts | 11 ---------- frontend/locales/en.json | 2 -- .../app-bar/help-button/links-tab-content.tsx | 8 ------- .../cover-buttons/cover-buttons.tsx | 21 ++----------------- .../navigation/user-dropdown.tsx | 7 ------- 5 files changed, 2 insertions(+), 47 deletions(-) diff --git a/frontend/cypress/e2e/intro.spec.ts b/frontend/cypress/e2e/intro.spec.ts index 0a4a3e97e..2e3ac7e52 100644 --- a/frontend/cypress/e2e/intro.spec.ts +++ b/frontend/cypress/e2e/intro.spec.ts @@ -26,17 +26,6 @@ describe('Intro page', () => { }) }) - describe('features button', () => { - it('is hidden when logged in', () => { - cy.getByCypressId('features-button').should('not.exist') - }) - - it('is visible when logged out', () => { - cy.logout() - cy.getByCypressId('features-button').should('exist') - }) - }) - describe('sign in button', () => { it('is hidden when logged in', () => { cy.getByCypressId('sign-in-button').should('not.exist') diff --git a/frontend/locales/en.json b/frontend/locales/en.json index 53aeda3fe..ddc657495 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -57,7 +57,6 @@ }, "landing": { "intro": { - "exploreFeatures": "Explore all features", "markdownWhileLoading": "Loading...", "markdownLoadingError": "Error while fetching intro content" }, @@ -262,7 +261,6 @@ }, "documents": { "title": "Documents", - "features": "Features", "yamlMetadata": "YAML Metadata", "slideExample": "Slide Example" } diff --git a/frontend/src/components/editor-page/app-bar/help-button/links-tab-content.tsx b/frontend/src/components/editor-page/app-bar/help-button/links-tab-content.tsx index 3e53c87f3..97dd35e2e 100644 --- a/frontend/src/components/editor-page/app-bar/help-button/links-tab-content.tsx +++ b/frontend/src/components/editor-page/app-bar/help-button/links-tab-content.tsx @@ -71,14 +71,6 @@ export const LinksTabContent: React.FC = () => {
    -
  • - -
  • { - useTranslation() const userExists = useApplicationState((state) => !!state.user) - const anyAuthProviderActivated = useApplicationState((state) => state.config.authProviders.length > 0) if (userExists) { return null @@ -24,17 +17,7 @@ export const CoverButtons: React.FC = () => { return (
    - - - - - - - - - +
    ) } diff --git a/frontend/src/components/landing-layout/navigation/user-dropdown.tsx b/frontend/src/components/landing-layout/navigation/user-dropdown.tsx index 88ba8989a..05b25c312 100644 --- a/frontend/src/components/landing-layout/navigation/user-dropdown.tsx +++ b/frontend/src/components/landing-layout/navigation/user-dropdown.tsx @@ -11,7 +11,6 @@ import { SignOutDropdownButton } from './sign-out-dropdown-button' import Link from 'next/link' import React from 'react' import { Dropdown } from 'react-bootstrap' -import { Lightning as IconLightning } from 'react-bootstrap-icons' import { Person as IconPerson } from 'react-bootstrap-icons' import { Trans, useTranslation } from 'react-i18next' @@ -33,12 +32,6 @@ export const UserDropdown: React.FC = () => { - - - - - -