mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 11:42:35 -06:00
chore: Wrap footer with React's memo hoc
This commit is contained in:
parent
00646b80c6
commit
71121e1dbe
@ -9,7 +9,7 @@ interface Props {
|
|||||||
newGrafanaVersion: string;
|
newGrafanaVersion: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Footer: SFC<Props> = ({appName, buildVersion, buildCommit, newGrafanaVersionExists, newGrafanaVersion}) => {
|
export const Footer: SFC<Props> = React.memo(({appName, buildVersion, buildCommit, newGrafanaVersionExists, newGrafanaVersion}) => {
|
||||||
return (
|
return (
|
||||||
<footer className="footer">
|
<footer className="footer">
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
@ -45,6 +45,6 @@ export const Footer: SFC<Props> = ({appName, buildVersion, buildCommit, newGrafa
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
};
|
});
|
||||||
|
|
||||||
export default Footer;
|
export default Footer;
|
||||||
|
Loading…
Reference in New Issue
Block a user