Commit 71121e1d by Johannes Schill

chore: Wrap footer with React's memo hoc

parent 00646b80
...@@ -9,7 +9,7 @@ interface Props { ...@@ -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 ...@@ -45,6 +45,6 @@ export const Footer: SFC<Props> = ({appName, buildVersion, buildCommit, newGrafa
</div> </div>
</footer> </footer>
); );
}; });
export default Footer; export default Footer;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment