Skip to content

Commit 8a80b00

Browse files
Patch for global JSX namespace deprecation in React 19 (#607)
1 parent faffe7d commit 8a80b00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/EmbeddedCheckout.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, {FunctionComponent} from 'react';
22
import {useEmbeddedCheckoutContext} from './EmbeddedCheckoutProvider';
33
import {isServer} from '../utils/isServer';
44

@@ -60,6 +60,8 @@ const EmbeddedCheckoutServerElement = ({
6060
return <div id={id} className={className} />;
6161
};
6262

63-
export const EmbeddedCheckout = isServer
63+
type EmbeddedCheckoutComponent = FunctionComponent<EmbeddedCheckoutProps>;
64+
65+
export const EmbeddedCheckout: EmbeddedCheckoutComponent = isServer
6466
? EmbeddedCheckoutServerElement
6567
: EmbeddedCheckoutClientElement;

0 commit comments

Comments
 (0)