chore: topic selector remove memo

This commit is contained in:
Aslam H
2024-11-09 15:12:45 +07:00
parent fe5f3ac1b9
commit 60846a4c42

View File

@@ -123,8 +123,13 @@ interface TopicSelectorContentProps
topics: ListOfTopics
}
const TopicSelectorContent: React.FC<TopicSelectorContentProps> = React.memo(
({ showSearch, searchPlaceholder, value, onSelect, topics }) => {
const TopicSelectorContent: React.FC<TopicSelectorContentProps> = ({
showSearch,
searchPlaceholder,
value,
onSelect,
topics,
}) => {
const [search, setSearch] = React.useState("")
const filteredTopics = React.useMemo(
() =>
@@ -200,8 +205,7 @@ const TopicSelectorContent: React.FC<TopicSelectorContentProps> = React.memo(
</CommandList>
</Command>
)
},
)
}
TopicSelectorContent.displayName = "TopicSelectorContent"