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:
@ -24,7 +24,7 @@ const SiteErrorBoundary: React.FC<ISiteErrorBoundary> = ({ children }) => {
|
||||
const textarea = useRef<HTMLTextAreaElement>(null);
|
||||
|
||||
const [error, setError] = useState<unknown>();
|
||||
const [componentStack, setComponentStack] = useState<string>();
|
||||
const [componentStack, setComponentStack] = useState<string | null | undefined>();
|
||||
const [browser, setBrowser] = useState<Bowser.Parser.Parser>();
|
||||
const [sentryEventId, setSentryEventId] = useState<string>();
|
||||
|
||||
|
||||
@ -64,7 +64,7 @@ interface IColumn {
|
||||
}
|
||||
|
||||
/** A backdrop for the main section of the UI. */
|
||||
const Column: React.FC<IColumn> = React.forwardRef((props, ref: React.ForwardedRef<HTMLDivElement>): JSX.Element => {
|
||||
const Column = React.forwardRef<HTMLDivElement, IColumn>((props, ref): JSX.Element => {
|
||||
const { backHref, children, label, transparent = false, withHeader = true, className, bodyClassName, action, size } = props;
|
||||
const plFeConfig = usePlFeConfig();
|
||||
const [isScrolled, setIsScrolled] = useState(false);
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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}>
|
||||
|
||||
@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user