refactor: prepare types for React 19 (#10746)

This commit is contained in:
Sébastien Lorber 2024-12-06 18:03:04 +01:00 committed by GitHub
parent e9f0641620
commit f9825af43e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
296 changed files with 1105 additions and 915 deletions

View file

@ -7,7 +7,7 @@
/* eslint-disable global-require */
import React, {type ComponentProps} from 'react';
import React, {type ComponentProps, type ReactNode} from 'react';
import {
CarouselProvider,
Slider,
@ -48,7 +48,7 @@ export default function ShowcaseCarousel({
}: {
sites: Site[];
aspectRatio: number;
}): JSX.Element {
}): ReactNode {
return (
<CarouselProvider
naturalSlideWidth={1}
@ -72,7 +72,7 @@ export default function ShowcaseCarousel({
);
}
export function ShowcaseCarouselV1(): JSX.Element {
export function ShowcaseCarouselV1(): ReactNode {
return (
<ShowcaseCarousel
aspectRatio={1072 / 584}
@ -107,7 +107,7 @@ export function ShowcaseCarouselV1(): JSX.Element {
);
}
export function ShowcaseCarouselV2(): JSX.Element {
export function ShowcaseCarouselV2(): ReactNode {
return (
<ShowcaseCarousel
aspectRatio={2148 / 1194}
@ -172,7 +172,7 @@ export function ShowcaseCarouselV2(): JSX.Element {
);
}
export function ShowcaseCarouselV2Theming(): JSX.Element {
export function ShowcaseCarouselV2Theming(): ReactNode {
return (
<ShowcaseCarousel
aspectRatio={2148 / 1194}