mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
refactor: rename branding component to custom branding
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
3f96616b5a
commit
d75b8d2d3b
4 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
|
@ -20,7 +20,7 @@ export interface BrandingProps {
|
||||||
* @param inline If the logo should be using the inline-size or the regular-size css class.
|
* @param inline If the logo should be using the inline-size or the regular-size css class.
|
||||||
* @param delimiter If the delimiter between the HedgeDoc logo and the branding should be shown.
|
* @param delimiter If the delimiter between the HedgeDoc logo and the branding should be shown.
|
||||||
*/
|
*/
|
||||||
export const Branding: React.FC<BrandingProps> = ({ inline = false, delimiter = true }) => {
|
export const CustomBranding: React.FC<BrandingProps> = ({ inline = false, delimiter = true }) => {
|
||||||
const branding = useFrontendConfig().branding
|
const branding = useFrontendConfig().branding
|
||||||
const showBranding = !!branding.name || !!branding.logo
|
const showBranding = !!branding.name || !!branding.logo
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { useDarkModeState } from '../../../hooks/dark-mode/use-dark-mode-state'
|
import { useDarkModeState } from '../../../hooks/dark-mode/use-dark-mode-state'
|
||||||
import { Branding } from '../../common/branding/branding'
|
import { CustomBranding } from '../../common/custom-branding/custom-branding'
|
||||||
import {
|
import {
|
||||||
HedgeDocLogoSize,
|
HedgeDocLogoSize,
|
||||||
HedgeDocLogoType,
|
HedgeDocLogoType,
|
||||||
|
@ -27,7 +27,7 @@ export const NavbarBranding: React.FC = () => {
|
||||||
logoType={darkModeActivated ? HedgeDocLogoType.WB_HORIZONTAL : HedgeDocLogoType.BW_HORIZONTAL}
|
logoType={darkModeActivated ? HedgeDocLogoType.WB_HORIZONTAL : HedgeDocLogoType.BW_HORIZONTAL}
|
||||||
size={HedgeDocLogoSize.SMALL}
|
size={HedgeDocLogoSize.SMALL}
|
||||||
/>
|
/>
|
||||||
<Branding inline={true} />
|
<CustomBranding inline={true} />
|
||||||
</Link>
|
</Link>
|
||||||
</Navbar.Brand>
|
</Navbar.Brand>
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { Branding } from '../components/common/branding/branding'
|
import { CustomBranding } from '../components/common/custom-branding/custom-branding'
|
||||||
import {
|
import {
|
||||||
HedgeDocLogoSize,
|
HedgeDocLogoSize,
|
||||||
HedgeDocLogoType,
|
HedgeDocLogoType,
|
||||||
|
@ -32,7 +32,7 @@ const IntroPage: NextPage = () => {
|
||||||
<Trans i18nKey='app.slogan' />
|
<Trans i18nKey='app.slogan' />
|
||||||
</p>
|
</p>
|
||||||
<div className={'mb-5'}>
|
<div className={'mb-5'}>
|
||||||
<Branding delimiter={false} />
|
<CustomBranding delimiter={false} />
|
||||||
</div>
|
</div>
|
||||||
<CoverButtons />
|
<CoverButtons />
|
||||||
<IntroCustomContent />
|
<IntroCustomContent />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue