fix: Various React warnings
This commit is contained in:
@@ -5,7 +5,7 @@ import CollectionsStore from "stores/CollectionsStore";
|
||||
import FilterOptions from "./FilterOptions";
|
||||
|
||||
const defaultOption = {
|
||||
key: undefined,
|
||||
key: "",
|
||||
label: "Any collection",
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import * as React from "react";
|
||||
import FilterOptions from "./FilterOptions";
|
||||
|
||||
const options = [
|
||||
{ key: undefined, label: "Any time" },
|
||||
{ key: "", label: "Any time" },
|
||||
{ key: "day", label: "Past day" },
|
||||
{ key: "week", label: "Past week" },
|
||||
{ key: "month", label: "Past month" },
|
||||
|
||||
@@ -8,7 +8,7 @@ import FilterOption from "./FilterOption";
|
||||
|
||||
type Props = {
|
||||
options: {
|
||||
key: ?string,
|
||||
key: string,
|
||||
label: string,
|
||||
note?: string,
|
||||
}[],
|
||||
@@ -20,7 +20,7 @@ type Props = {
|
||||
|
||||
const FilterOptions = ({
|
||||
options,
|
||||
activeKey,
|
||||
activeKey = "",
|
||||
defaultLabel,
|
||||
selectedPrefix = "",
|
||||
onSelect,
|
||||
|
||||
@@ -4,7 +4,7 @@ import FilterOptions from "./FilterOptions";
|
||||
|
||||
const options = [
|
||||
{
|
||||
key: undefined,
|
||||
key: "",
|
||||
label: "Active documents",
|
||||
note: "Documents in collections you are able to access",
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ import UsersStore from "stores/UsersStore";
|
||||
import FilterOptions from "./FilterOptions";
|
||||
|
||||
const defaultOption = {
|
||||
key: undefined,
|
||||
key: "",
|
||||
label: "Any author",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user