From 8ed5ff25a5bafd73810f902a7974462538d16b2d Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Tue, 25 Aug 2020 19:19:01 +0200 Subject: [PATCH] Remove unused FeaturedProject.state.show Change-type: patch --- .../featured-project/featured-project.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/gui/app/components/featured-project/featured-project.tsx b/lib/gui/app/components/featured-project/featured-project.tsx index 9ed36346..11e1a7be 100644 --- a/lib/gui/app/components/featured-project/featured-project.tsx +++ b/lib/gui/app/components/featured-project/featured-project.tsx @@ -28,10 +28,9 @@ interface FeaturedProjectProps { interface FeaturedProjectState { endpoint: string | null; - show: boolean; } -export class FeaturedProject extends React.Component< +export class FeaturedProject extends React.PureComponent< FeaturedProjectProps, FeaturedProjectState > { @@ -39,7 +38,6 @@ export class FeaturedProject extends React.Component< super(props); this.state = { endpoint: null, - show: false, }; } @@ -58,16 +56,8 @@ export class FeaturedProject extends React.Component< } public render() { - const { style = {} } = this.props; return this.state.endpoint ? ( - + ) : null; } }