mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-25 17:58:56 +02:00
chore: topic selector remove memo
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user