[CORL-331] Better tests with types (#2270)

* feat: suspending, banning, now propogation

* feat: new mutation api with hooks support

* feat: better types in tests and refactor

* fix: lint
This commit is contained in:
Kiwi
2019-04-23 19:46:14 +00:00
committed by Wyatt Johnson
parent dbbc1af42e
commit 5150cdf60e
136 changed files with 2546 additions and 2465 deletions
@@ -114,8 +114,8 @@ function valueToState(
// Start from the first unit,
// keep first unit if value is set to 0,
// otherwise use better matching unit if the value is fully dividable by the unit.
unit = units.reduce(
(x, cur) => (parsed % cur === 0 && parsed !== 0 ? cur : x)
unit = units.reduce((x, cur) =>
parsed % cur === 0 && parsed !== 0 ? cur : x
);
}
// Compute new value relative to the selected unit.
@@ -6,9 +6,9 @@ import { PasswordField as PasswordFieldUI } from "talk-ui/components";
export interface Props
extends Omit<
PropTypesOf<typeof PasswordFieldUI>,
"showPasswordTitle" | "hidePasswordTitle"
> {}
PropTypesOf<typeof PasswordFieldUI>,
"showPasswordTitle" | "hidePasswordTitle"
> {}
const PasswordField: StatelessComponent<Props> = props => (
<Localized