Type fixes
This commit is contained in:
1 parent
3d4de9476d
commit
cee41eabc7
12 files changed
+49
-45
No files matched your search
@@ -5,7 +5,9 @@ import "react-phone-number-input/style.css";
|
||||
import classNames from "@lib/classNames";
|
||||
import { Optional } from "@lib/types/utils";
|
||||
|
||||
export const PhoneInput = (props: Optional<PhoneInputProps, "onChange">) => (
|
||||
export const PhoneInput = (
|
||||
props: Optional<PhoneInputProps<React.InputHTMLAttributes<HTMLInputElement>>, "onChange">
|
||||
) => (
|
||||
<BasePhoneInput
|
||||
{...props}
|
||||
className={classNames(
|
||||
|
||||
@@ -27,7 +27,7 @@ const TIMES = (() => {
|
||||
const end = dayjs().utc().endOf("day");
|
||||
let t: Dayjs = dayjs().utc().startOf("day");
|
||||
|
||||
const times = [];
|
||||
const times: Dayjs[] = [];
|
||||
while (t.isBefore(end)) {
|
||||
times.push(t);
|
||||
t = t.add(increment, "minutes");
|
||||
|
||||
Reference in new issue
Block a user