From 66a4627fec5491526378bac12128f87a5d328d2d Mon Sep 17 00:00:00 2001 From: AlexAlexandre Date: Fri, 16 Jul 2021 16:31:28 -0300 Subject: [PATCH] =?UTF-8?q?[IMPROVE]=20fix=20typescript=20error=20?= =?UTF-8?q?=E2=80=9CNo=20overload=20matches=20this=20call=E2=80=9D=20with?= =?UTF-8?q?=20some=20@ts-ignore=20for=20not=20changing=20the=20implementat?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/containers/Avatar/index.tsx | 1 + app/containers/BackgroundContainer/index.tsx | 5 ++--- app/containers/EmojiPicker/EmojiCategory.tsx | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/containers/Avatar/index.tsx b/app/containers/Avatar/index.tsx index 3fb84d216..e9a3541ac 100644 --- a/app/containers/Avatar/index.tsx +++ b/app/containers/Avatar/index.tsx @@ -65,6 +65,7 @@ class AvatarContainer extends React.Component, any> { if (this.mounted) { this.setState({ avatarETag }); } else { + // @ts-ignore this.state.avatarETag = avatarETag; } }); diff --git a/app/containers/BackgroundContainer/index.tsx b/app/containers/BackgroundContainer/index.tsx index b6580de21..21324d791 100644 --- a/app/containers/BackgroundContainer/index.tsx +++ b/app/containers/BackgroundContainer/index.tsx @@ -36,9 +36,8 @@ const BackgroundContainer = ({ theme, text, loading }: IBackgroundContainer) => {text ? {text} : null} - {/*{loading ? : null}*/} - {loading ? : null} - + {/*@ts-ignore*/} + {loading ? : null} ); diff --git a/app/containers/EmojiPicker/EmojiCategory.tsx b/app/containers/EmojiPicker/EmojiCategory.tsx index 7c6fbce76..69feafc93 100644 --- a/app/containers/EmojiPicker/EmojiCategory.tsx +++ b/app/containers/EmojiPicker/EmojiCategory.tsx @@ -54,6 +54,7 @@ class EmojiCategory extends React.Component { const marginHorizontal = (width - (numColumns * EMOJI_SIZE)) / 2; return ( + // @ts-ignore