Skip to content

Commit

Permalink
chore: deletes unneccesary clearEmojiTones
Browse files Browse the repository at this point in the history
  • Loading branch information
mateki0 authored and jakex7 committed Jun 18, 2023
1 parent c73f87e commit f256573
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Categories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const Categories = (p: Props) => {
onCategoryChangeFailed,
categoryPosition,
renderList,
clearEmojiTonesData,
theme,
styles: themeStyles,
enableCategoryChangeAnimation,
Expand All @@ -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 }) => (
Expand Down

0 comments on commit f256573

Please sign in to comment.