summaryrefslogtreecommitdiff
path: root/frontend/src/components/WithSuspense.tsx
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2025-10-15 00:14:50 -0400
committerAAGaming <aagaming@riseup.net>2025-10-15 00:14:50 -0400
commit0c56f1b689428758a16b34a1844b60131282aa36 (patch)
tree192a771128b7142d21275a1231e81fa72b1c220f /frontend/src/components/WithSuspense.tsx
parent86b5567d4eac84399245c9a71270d6142ee54ded (diff)
downloaddecky-loader-0c56f1b689428758a16b34a1844b60131282aa36.tar.gz
decky-loader-0c56f1b689428758a16b34a1844b60131282aa36.zip
react 19 support
Diffstat (limited to 'frontend/src/components/WithSuspense.tsx')
-rw-r--r--frontend/src/components/WithSuspense.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/WithSuspense.tsx b/frontend/src/components/WithSuspense.tsx
index 153bec8d..d6281e3e 100644
--- a/frontend/src/components/WithSuspense.tsx
+++ b/frontend/src/components/WithSuspense.tsx
@@ -10,7 +10,7 @@ interface WithSuspenseProps {
const WithSuspense: FunctionComponent<WithSuspenseProps> = (props) => {
const propsCopy = { ...props };
delete propsCopy.children;
- (props.children as ReactElement)?.props && Object.assign((props.children as ReactElement).props, propsCopy); // There is probably a better way to do this but valve does it this way so ¯\_(ツ)_/¯
+ (props.children as ReactElement<any>)?.props && Object.assign((props.children as ReactElement<any>).props, propsCopy); // There is probably a better way to do this but valve does it this way so ¯\_(ツ)_/¯
return (
<Suspense
fallback={