diff --git a/public/app/core/components/Branding/Branding.tsx b/public/app/core/components/Branding/Branding.tsx index 4968330dd59..474ad7f850a 100644 --- a/public/app/core/components/Branding/Branding.tsx +++ b/public/app/core/components/Branding/Branding.tsx @@ -9,8 +9,8 @@ export interface BrandComponentProps { children?: JSX.Element | JSX.Element[]; } -const LoginLogo: FC = ({ className }) => { - return Grafana; +export const LoginLogo: FC = ({ className, logo }) => { + return Grafana; }; const LoginBackground: FC = ({ className, children }) => { diff --git a/public/app/core/components/Branding/types.ts b/public/app/core/components/Branding/types.ts new file mode 100644 index 00000000000..cddfcb6d78b --- /dev/null +++ b/public/app/core/components/Branding/types.ts @@ -0,0 +1,15 @@ +import { FooterLink } from '../Footer/Footer'; + +export interface BrandingSettings { + footerLinks: FooterLink[] | null; + appTitle: string; + loginSubtitle: string; + loginTitle: string; + loginLogo: string; + loginBackground: string; + loginBoxBackground: string; + menuLogo: string; + favIcon: string; + loadingLogo: string; + appleTouchIcon: string; +} diff --git a/public/app/core/components/Footer/Footer.tsx b/public/app/core/components/Footer/Footer.tsx index fb05620b3d8..ce1a412d659 100644 --- a/public/app/core/components/Footer/Footer.tsx +++ b/public/app/core/components/Footer/Footer.tsx @@ -1,4 +1,4 @@ -import React, { FC } from 'react'; +import React from 'react'; import { config } from '@grafana/runtime'; import { Icon, IconName } from '@grafana/ui'; @@ -82,8 +82,13 @@ export function setVersionLinkFn(fn: typeof getFooterLinks) { getVersionLinks = fn; } -export const Footer: FC = React.memo(() => { - const links = getFooterLinks().concat(getVersionLinks()); +export interface Props { + /** Link overrides to show specific links in the UI */ + customLinks?: FooterLink[] | null; +} + +export const Footer = React.memo(({ customLinks }: Props) => { + const links = (customLinks || getFooterLinks()).concat(getVersionLinks()); return (