소스 검색

chore: Wrap footer with React's memo hoc

Johannes Schill 7 년 전
부모
커밋
71121e1dbe
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      public/app/core/components/Footer/Footer.tsx

+ 2 - 2
public/app/core/components/Footer/Footer.tsx

@@ -9,7 +9,7 @@ interface Props {
   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 (
     <footer className="footer">
       <div className="text-center">
@@ -45,6 +45,6 @@ export const Footer: SFC<Props> = ({appName, buildVersion, buildCommit, newGrafa
       </div>
     </footer>
   );
-};
+});
 
 export default Footer;