Impl PaginatedItem interface for options

This commit is contained in:
CuriousCorrelation committed 2022-07-11 18:16:17 +05:30
1 parent e41aaac07b
commit 9ecd40ce76
1 file changed
+2
@@ -23,11 +23,13 @@ function UserFilter(props: Props) {
const options = React.useMemo(() => {
const userOptions = users.all.map((user) => ({
key: user.id,
id: user.id,
label: user.name,
}));
return [
{
key: "",
id: "",
label: t("Any author"),
},
...userOptions,