Open platform to collect and prioritize feedback
React upgrade is a little more picky about types.
Matt Roberts7812810a0477
diff --git a/public/components/ErrorBoundary.tsx b/public/components/ErrorBoundary.tsxindex 7418da426..2a888755e 100644--- a/public/components/ErrorBoundary.tsx+++ b/public/components/ErrorBoundary.tsx@@ -3,6 +3,7 @@ import { ErrorPage } from "@fider/pages/Error/Error.page"import { FiderContext } from "@fider/services"interface ErrorBoundaryProps {+ children?: React.ReactNodeonError?: (err: Error) => void}diff --git a/public/components/SignInModal.tsx b/public/components/SignInModal.tsxindex 095a11d0f..eda3506d5 100644--- a/public/components/SignInModal.tsx+++ b/public/components/SignInModal.tsx@@ -8,7 +8,7 @@ interface SignInModalProps {onClose: () => void}-export const SignInModal: React.StatelessComponent<SignInModalProps> = (props) => {+export const SignInModal: React.FC<SignInModalProps> = (props) => {const [email, setEmail] = useState("")useEffect(() => {diff --git a/public/components/common/Button.tsx b/public/components/common/Button.tsxindex 3bc6423b0..dc2796d43 100644--- a/public/components/common/Button.tsx+++ b/public/components/common/Button.tsx@@ -4,6 +4,7 @@ import React, { useEffect, useRef, useState } from "react"import { classSet } from "@fider/services"interface ButtonProps {+ children?: React.ReactNodeclassName?: stringdisabled?: booleanhref?: stringdiff --git a/public/components/common/Hint.tsx b/public/components/common/Hint.tsxindex 2ff25717c..34ec72108 100644--- a/public/components/common/Hint.tsx+++ b/public/components/common/Hint.tsx@@ -7,6 +7,7 @@ import { cache } from "@fider/services"import { Icon } from "./Icon"interface HintProps {+ children?: React.ReactNodepermanentCloseKey?: stringcondition?: boolean}diff --git a/public/components/common/Message.tsx b/public/components/common/Message.tsxindex 1bfda9151..5da42a70e 100644--- a/public/components/common/Message.tsx+++ b/public/components/common/Message.tsx@@ -9,6 +9,7 @@ import { HStack } from "@fider/components/layout"import { Icon } from "./Icon"interface MessageProps {+ children?: React.ReactNodetype: "success" | "warning" | "error"className?: stringalignment?: "center"diff --git a/public/components/common/Modal.tsx b/public/components/common/Modal.tsxindex 77e63b434..e0f90b8a6 100644--- a/public/components/common/Modal.tsx+++ b/public/components/common/Modal.tsx@@ -5,6 +5,7 @@ import ReactDOM from "react-dom"import { classSet } from "@fider/services"interface ModalWindowProps {+ children?: React.ReactNodeclassName?: stringisOpen: booleansize?: "small" | "large" | "fluid"diff --git a/public/components/common/form/Checkbox.tsx b/public/components/common/form/Checkbox.tsxindex 2beb68e03..02db803b6 100644--- a/public/components/common/form/Checkbox.tsx+++ b/public/components/common/form/Checkbox.tsx@@ -6,6 +6,7 @@ import { HStack } from "@fider/components/layout"import "./Checkbox.scss"interface CheckboxProps {+ children?: React.ReactNodefield: stringchecked?: booleanonChange?: (checked: boolean) => voiddiff --git a/public/components/common/form/Field.tsx b/public/components/common/form/Field.tsxindex 805f14023..cd05bbf34 100644--- a/public/components/common/form/Field.tsx+++ b/public/components/common/form/Field.tsx@@ -4,6 +4,7 @@ import { ValidationContext } from "./Form"import { DisplayError, hasError } from "./DisplayError"interface FieldProps {+ children?: React.ReactNodeclassName?: stringlabel?: stringfield?: stringdiff --git a/public/components/common/form/Form.tsx b/public/components/common/form/Form.tsxindex c751c97d2..775ac3d8a 100644--- a/public/components/common/form/Form.tsx+++ b/public/components/common/form/Form.tsx@@ -9,6 +9,7 @@ interface ValidationContext {}interface FormProps {+ children?: React.ReactNodeclassName?: stringerror?: Failure}diff --git a/public/components/common/form/ImageUploader.tsx b/public/components/common/form/ImageUploader.tsxindex fb038e9c7..bc58c62e9 100644--- a/public/components/common/form/ImageUploader.tsx+++ b/public/components/common/form/ImageUploader.tsx@@ -11,6 +11,7 @@ import IconPhotograph from "@fider/assets/images/heroicons-photograph.svg"const hardFileSizeLimit = 5 * 1024 * 1024interface ImageUploaderProps {+ children?: React.ReactNodeinstanceID?: stringfield: stringlabel?: stringdiff --git a/public/components/common/form/Input.tsx b/public/components/common/form/Input.tsxindex 81e0fdd93..d8eb7c51a 100644--- a/public/components/common/form/Input.tsx+++ b/public/components/common/form/Input.tsx@@ -8,6 +8,7 @@ import "./Input.scss"import { HStack } from "@fider/components/layout"interface InputProps {+ children?: React.ReactNodefield: stringlabel?: stringclassName?: stringdiff --git a/public/components/common/form/Select.tsx b/public/components/common/form/Select.tsxindex e864e68bc..6a6f6c43c 100644--- a/public/components/common/form/Select.tsx+++ b/public/components/common/form/Select.tsx@@ -11,6 +11,7 @@ export interface SelectOption {}interface SelectProps {+ children?: React.ReactNodefield: stringlabel?: stringmaxLength?: numberdiff --git a/public/components/common/form/TextArea.tsx b/public/components/common/form/TextArea.tsxindex 4c6df2525..0a61360da 100644--- a/public/components/common/form/TextArea.tsx+++ b/public/components/common/form/TextArea.tsx@@ -7,6 +7,7 @@ import Textarea from "react-textarea-autosize"import "./TextArea.scss"interface TextAreaProps {+ children?: React.ReactNodelabel?: stringfield: stringvalue?: string