mirror of
https://github.com/wassname/talk.git
synced 2026-08-03 13:20:59 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user