Public Dashboards: Renaming PubdashFooter (#58137)

This commit is contained in:
lean.dev
2022-11-03 10:12:27 -03:00
committed by GitHub
parent d45fe6e25c
commit 49e36c5c05
2 changed files with 8 additions and 8 deletions

View File

@@ -4,16 +4,16 @@ import React from 'react';
import { GrafanaTheme2, colorManipulator } from '@grafana/data';
import { useStyles2 } from '@grafana/ui';
export interface PublicDashboardFooter {
export interface PublicDashboardFooterCfg {
hide: boolean;
text: string;
logo: string;
link: string;
}
export const PubdashFooter = function () {
export const PublicDashboardFooter = function () {
const styles = useStyles2(getStyles);
const conf = getPubdashFooterConfig();
const conf = getPublicDashboardFooterConfig();
return conf.hide ? null : (
<div className={styles.footer}>
@@ -26,10 +26,10 @@ export const PubdashFooter = function () {
);
};
export function setPubdashFooterConfigFn(fn: typeof getPubdashFooterConfig) {
getPubdashFooterConfig = fn;
export function setPublicDashboardFooterConfigFn(fn: typeof getPublicDashboardFooterConfig) {
getPublicDashboardFooterConfig = fn;
}
export let getPubdashFooterConfig = (): PublicDashboardFooter => ({
export let getPublicDashboardFooterConfig = (): PublicDashboardFooterCfg => ({
hide: false,
text: 'powered by Grafana',
logo: 'public/img/grafana_icon.svg',