fix: Various React warnings

This commit is contained in:
Tom Moor
2020-11-08 20:28:27 -08:00
parent 0372ff2727
commit 14e0ed8108
7 changed files with 33 additions and 32 deletions

View File

@@ -5,7 +5,7 @@ import CollectionsStore from "stores/CollectionsStore";
import FilterOptions from "./FilterOptions";
const defaultOption = {
key: undefined,
key: "",
label: "Any collection",
};

View File

@@ -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" },

View File

@@ -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,

View File

@@ -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",
},

View File

@@ -5,7 +5,7 @@ import UsersStore from "stores/UsersStore";
import FilterOptions from "./FilterOptions";
const defaultOption = {
key: undefined,
key: "",
label: "Any author",
};