Upgrade React to v18.3

Co-authored-by: Alex Gleason <alex@alexgleason.me>
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-10-02 18:51:41 +02:00
parent 51498883cf
commit 8b773e427d
5 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ interface IChatTextarea extends React.ComponentProps<typeof Textarea> {
}
/** Custom textarea for chats. */
const ChatTextarea: React.FC<IChatTextarea> = React.forwardRef(({
const ChatTextarea = React.forwardRef<HTMLTextAreaElement, IChatTextarea>(({
attachment,
onDeleteAttachment,
uploading,

View File

@@ -79,7 +79,7 @@ const ModalRoot: React.FC = () => {
closeModal(type);
};
const Component = type !== null ? (MODAL_COMPONENTS as Record<keyof typeof MODAL_COMPONENTS, React.LazyExoticComponent<any>>)[type] : null;
const Component = type !== null ? (MODAL_COMPONENTS as Record<keyof typeof MODAL_COMPONENTS, React.ExoticComponent<any>>)[type] : null;
return (
<Base onClose={onClickClose} type={type}>

View File

@@ -15,7 +15,7 @@ type LayoutProps = {
};
interface IWrappedRoute extends RouteProps {
component: React.LazyExoticComponent<any>;
component: React.ExoticComponent<any>;
layout: React.ComponentType<LayoutProps>;
content?: React.ReactNode;
componentParams?: Record<string, any>;