From 7a8b158188b6fa80338ecb5397e1a1722b660556 Mon Sep 17 00:00:00 2001 From: Antoine Chalifour Date: Thu, 3 Oct 2019 13:23:38 +0200 Subject: [PATCH] fix: remove unnecessary ts ignore --- src/components/ActionBar/ActionBar.tsx | 1 - src/components/Header/Header.tsx | 1 - src/components/Icon/Icon.tsx | 4 +--- src/components/Package/Package.tsx | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/ActionBar/ActionBar.tsx b/src/components/ActionBar/ActionBar.tsx index fb6f2d9..79db693 100644 --- a/src/components/ActionBar/ActionBar.tsx +++ b/src/components/ActionBar/ActionBar.tsx @@ -70,7 +70,6 @@ class ActionBar extends Component { } private renderActionBar = ({ packageMeta }) => { - // @ts-ignore const { latest } = packageMeta; if (!latest) { diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 97b7ea6..dc556a1 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -184,7 +184,6 @@ class Header extends Component { switch (type) { case 'help': content = ( - // @ts-ignore diff --git a/src/components/Icon/Icon.tsx b/src/components/Icon/Icon.tsx index 4c603c9..4bcefb7 100644 --- a/src/components/Icon/Icon.tsx +++ b/src/components/Icon/Icon.tsx @@ -65,14 +65,12 @@ export interface Props { } const Icon: React.FC = ({ className, name, size = 'sm', img = false, pointer = false, ...props }) => { - // @ts-ignore - const title = capitalize(name); + const title = capitalize(name.toString()); return img ? ( {title} ) : ( - // @ts-ignore {title} diff --git a/src/components/Package/Package.tsx b/src/components/Package/Package.tsx index bcbb4a5..be749ba 100644 --- a/src/components/Package/Package.tsx +++ b/src/components/Package/Package.tsx @@ -150,7 +150,6 @@ const Package: React.FC = ({ }; const renderSecondaryComponent = (): React.ReactNode => { - // @ts-ignore const tags = keywords.sort().map((keyword, index) => {keyword}); return ( <>