From 71121e1dbea17a931de6a57589353fc1b0ca3074 Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Thu, 17 Jan 2019 09:15:47 +0100 Subject: [PATCH] chore: Wrap footer with React's memo hoc --- public/app/core/components/Footer/Footer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/core/components/Footer/Footer.tsx b/public/app/core/components/Footer/Footer.tsx index 01da74036b6..59ec913c34a 100644 --- a/public/app/core/components/Footer/Footer.tsx +++ b/public/app/core/components/Footer/Footer.tsx @@ -9,7 +9,7 @@ interface Props { newGrafanaVersion: string; } -export const Footer: SFC = ({appName, buildVersion, buildCommit, newGrafanaVersionExists, newGrafanaVersion}) => { +export const Footer: SFC = React.memo(({appName, buildVersion, buildCommit, newGrafanaVersionExists, newGrafanaVersion}) => { return ( ); -}; +}); export default Footer;