Type fixes

This commit is contained in:
zomars authored and Omar López committed 2022-02-10 14:22:45 -07:00
1 parent 3d4de9476d
commit cee41eabc7
12 files changed
+49 -45

No files matched your search

Whitespace-only changes.
@@ -54,7 +54,6 @@ export default function TeamSettings(props: Props) {
};
// remove unchanged variables
for (const key in variables) {
//@ts-expect-error will fix types
if (variables[key] === team?.[key]) delete variables[key];
}
mutation.mutate({ id: team.id, ...variables });
+3 -1
View File
@@ -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(
+1 -1
View File
@@ -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");