Remove dependency resolution override for React 19 types (#39569)
Co-authored-by: ChaosExAnima <ChaosExAnima@users.noreply.github.com>
This commit is contained in:
1 parent
f440615b01
commit
f2e10fd5db
52 files changed
+112
-110
No files matched your search
@@ -3,6 +3,7 @@ import {
|
||||
cloneElement,
|
||||
createContext,
|
||||
forwardRef,
|
||||
isValidElement,
|
||||
useCallback,
|
||||
useContext,
|
||||
} from 'react';
|
||||
@@ -179,7 +180,9 @@ export const ColumnsArea = forwardRef<
|
||||
|
||||
<ColumnIndexContext.Provider value={columns.size}>
|
||||
{Children.map(children, (child) =>
|
||||
cloneElement(child, { multiColumn: true }),
|
||||
isValidElement<{ multiColumn?: boolean }>(child)
|
||||
? cloneElement(child, { multiColumn: true })
|
||||
: child,
|
||||
)}
|
||||
</ColumnIndexContext.Provider>
|
||||
</main>
|
||||
|
||||
@@ -18,7 +18,7 @@ const EmbedModal: React.FC<{
|
||||
onClose: () => void;
|
||||
}> = ({ id, onClose }) => {
|
||||
const iframeRef = useRef<HTMLIFrameElement>(null);
|
||||
const intervalRef = useRef<ReturnType<typeof setInterval>>();
|
||||
const intervalRef = useRef<ReturnType<typeof setInterval>>(null);
|
||||
const [oembed, setOembed] = useState<OEmbedResponse | null>(null);
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
|
||||
@@ -120,8 +120,8 @@ export const ZoomableImage: React.FC<ZoomableImageProps> = ({
|
||||
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
const imageRef = useRef<HTMLImageElement>(null);
|
||||
const doubleClickTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>();
|
||||
const zoomMatrixRef = useRef<ZoomMatrix | null>(null);
|
||||
const doubleClickTimeoutRef = useRef<ReturnType<typeof setTimeout>>(null);
|
||||
const zoomMatrixRef = useRef<ZoomMatrix>(null);
|
||||
|
||||
const [style, api] = useSpring(() => ({
|
||||
x: 0,
|
||||
|
||||
Reference in new issue
Block a user