From f256573642e2677317f4f4fe78850519baa9c8ee Mon Sep 17 00:00:00 2001 From: mateki0 Date: Wed, 17 May 2023 09:50:55 +0200 Subject: [PATCH] chore: deletes unneccesary clearEmojiTones --- src/components/Categories.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Categories.tsx b/src/components/Categories.tsx index 8877cca..14d4771 100644 --- a/src/components/Categories.tsx +++ b/src/components/Categories.tsx @@ -20,7 +20,6 @@ export const Categories = (p: Props) => { onCategoryChangeFailed, categoryPosition, renderList, - clearEmojiTonesData, theme, styles: themeStyles, enableCategoryChangeAnimation, @@ -29,9 +28,8 @@ export const Categories = (p: Props) => { const scrollNav = React.useRef(new Animated.Value(0)).current const handleScrollToCategory = React.useCallback(() => { - clearEmojiTonesData() setShouldAnimateScroll(enableCategoryChangeAnimation) - }, [clearEmojiTonesData, setShouldAnimateScroll, enableCategoryChangeAnimation]) + }, [setShouldAnimateScroll, enableCategoryChangeAnimation]) const renderItem = React.useCallback( ({ item, index }: { item: CategoryNavigationItem; index: number }) => (