Skip to content

Commit a538a31

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
support for react 19
1 parent 5c98ae2 commit a538a31

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"prop-types": "^15.7.2"
8585
},
8686
"peerDependencies": {
87-
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
88-
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0"
87+
"react": "^16.13.1 || ^17.0.0 || ^18.0.0 || ^19.0.0",
88+
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
8989
}
9090
}

src/components/IKImage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const IKImage = (props: IKImageProps) => {
9191

9292
return <img
9393
alt={props.alt || ""}
94-
src={currentUrl ? currentUrl : ''}
94+
src={currentUrl ? currentUrl : undefined}
9595
ref={imageRef}
9696
{...restProps}
9797
/>;

src/components/IKVideo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type IKVideoState = {
1313
const IKVideo = (props: IKVideoProps & IKContextBaseProps) => {
1414
const videoRef = useRef<HTMLVideoElement>(null);
1515
const [state, setState] = useState<IKVideoState>({
16-
currentUrl: '',
16+
currentUrl: undefined,
1717
contextOptions: {}
1818
});
1919

0 commit comments

Comments
 (0)