-
- {!userExists ? (
-
-
-
-
-
-
- ) : (
-
-
-
-
-
-
- )}
+
+
+
+ {!userExists ? : }
)
diff --git a/frontend/src/components/landing-layout/navigation/new-guest-note-button.tsx b/frontend/src/components/landing-layout/navigation/new-guest-note-button.tsx
deleted file mode 100644
index d0b5c9308..000000000
--- a/frontend/src/components/landing-layout/navigation/new-guest-note-button.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
- *
- * SPDX-License-Identifier: AGPL-3.0-only
- */
-import { cypressId } from '../../../utils/cypress-attribute'
-import { UiIcon } from '../../common/icons/ui-icon'
-import Link from 'next/link'
-import React from 'react'
-import { Button } from 'react-bootstrap'
-import { Plus as IconPlus } from 'react-bootstrap-icons'
-import { Trans, useTranslation } from 'react-i18next'
-
-/**
- * Renders a button to create a new note as a guest.
- */
-export const NewGuestNoteButton: React.FC = () => {
- const { t } = useTranslation()
- return (
-
-
-
- )
-}
diff --git a/frontend/src/components/landing-layout/navigation/new-user-note-button.tsx b/frontend/src/components/landing-layout/navigation/new-user-note-button.tsx
deleted file mode 100644
index bc34dce11..000000000
--- a/frontend/src/components/landing-layout/navigation/new-user-note-button.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
- *
- * SPDX-License-Identifier: AGPL-3.0-only
- */
-import { cypressId } from '../../../utils/cypress-attribute'
-import { UiIcon } from '../../common/icons/ui-icon'
-import Link from 'next/link'
-import React from 'react'
-import { Button } from 'react-bootstrap'
-import { Plus as IconPlus } from 'react-bootstrap-icons'
-import { Trans, useTranslation } from 'react-i18next'
-
-/**
- * Renders a button to create a new note as a logged in user.
- */
-export const NewUserNoteButton: React.FC = () => {
- const { t } = useTranslation()
- return (
-
-
-
- )
-}
diff --git a/frontend/src/components/login-page/auth/social-link-button/social-link-button.module.scss b/frontend/src/components/login-page/auth/social-link-button/social-link-button.module.scss
deleted file mode 100644
index 4843b7058..000000000
--- a/frontend/src/components/login-page/auth/social-link-button/social-link-button.module.scss
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
- *
- * SPDX-License-Identifier: AGPL-3.0-only
- */
-
-.social-link-button {
-
- &, &:hover {
- color: #FFFFFF;
- }
-
- .icon-part {
- padding: 0.375rem 0.375rem;
- border-right: 1px solid rgba(0, 0, 0, 0.2);
- display: flex;
-
- .social-icon {
- font-size: 1.5em;
- }
- }
-
- .text-part {
- padding: 0.375rem 0.75rem;
- }
-}
-
diff --git a/frontend/src/components/login-page/auth/social-link-button/social-link-button.tsx b/frontend/src/components/login-page/auth/social-link-button/social-link-button.tsx
deleted file mode 100644
index 25aae271e..000000000
--- a/frontend/src/components/login-page/auth/social-link-button/social-link-button.tsx
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
- *
- * SPDX-License-Identifier: AGPL-3.0-only
- */
-import { UiIcon } from '../../../common/icons/ui-icon'
-import styles from './social-link-button.module.scss'
-import type { PropsWithChildren } from 'react'
-import React from 'react'
-import type { Icon } from 'react-bootstrap-icons'
-
-export interface SocialButtonProps {
- backgroundClass: string
- href: string
- icon: Icon
- title?: string
-}
-
-/**
- * Renders a link for a social login.
- *
- * @param title The link title
- * @param backgroundClass Additional classes for the a-tag
- * @param href The link
- * @param icon The icon to be used
- * @param children The children to be rendered in addition to the icon.
- */
-export const SocialLinkButton: React.FC
> = ({
- title,
- backgroundClass,
- href,
- icon,
- children
-}) => {
- return (
-
-
-
-
- {children}
-
- )
-}
diff --git a/frontend/src/components/login-page/auth/via-one-click.tsx b/frontend/src/components/login-page/auth/via-one-click.tsx
index 203110e6c..c29d1bee6 100644
--- a/frontend/src/components/login-page/auth/via-one-click.tsx
+++ b/frontend/src/components/login-page/auth/via-one-click.tsx
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type { AuthProvider, AuthProviderWithCustomName } from '../../../api/config/types'
-import { SocialLinkButton } from './social-link-button/social-link-button'
+import { IconButton } from '../../common/icon-button/icon-button'
import { getOneClickProviderMetadata } from './utils/get-one-click-provider-metadata'
import React, { useMemo } from 'react'
@@ -22,8 +22,8 @@ export const ViaOneClick: React.FC = ({ provider }) => {
const text = (provider as AuthProviderWithCustomName).providerName || name
return (
-
+
{text}
-
+
)
}