Skip to content

Commit

Permalink
chore: update to react 18 (#6780)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Mar 26, 2024
1 parent 7761a2b commit 78c22ee
Show file tree
Hide file tree
Showing 12 changed files with 2,944 additions and 3,120 deletions.
18 changes: 8 additions & 10 deletions package.json
Expand Up @@ -80,15 +80,15 @@
"@babel/register": "^7.22.15",
"@react-bootstrap/babel-preset": "^2.2.0",
"@react-bootstrap/eslint-config": "^3.0.0",
"@testing-library/dom": "^8.20.1",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^13.5.0",
"@testing-library/dom": "^9.3.4",
"@testing-library/react": "^14.2.1",
"@types/chai": "^4.3.11",
"@types/invariant": "^2.2.37",
"@types/mocha": "^10.0.6",
"@types/prop-types": "^15.7.11",
"@types/react-dom": "^16.9.24",
"@types/sinon": "^10.0.20",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@types/warning": "^3.0.3",
"@typescript-eslint/eslint-plugin": "^5.62.0",
Expand Down Expand Up @@ -131,11 +131,9 @@
"mocha": "^10.2.0",
"prettier": "^2.8.8",
"process": "^0.11.10",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"simulant": "^0.2.2",
"sinon": "^15.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"typescript": "^5.3.3",
"util": "^0.12.5",
Expand Down
1 change: 0 additions & 1 deletion src/Carousel.tsx
Expand Up @@ -55,7 +55,6 @@ export interface CarouselProps
prevLabel?: React.ReactNode;
nextIcon?: React.ReactNode;
nextLabel?: React.ReactNode;
ref?: React.Ref<CarouselRef>;
variant?: CarouselVariant;
}

Expand Down
2 changes: 1 addition & 1 deletion src/helpers.ts
Expand Up @@ -28,7 +28,7 @@ export interface BsPrefixRefForwardingComponent<
<As extends React.ElementType = TInitial>(
props: React.PropsWithChildren<ReplaceProps<As, BsPrefixProps<As> & P>>,
context?: any,
): React.ReactElement | null;
): React.ReactNode;
propTypes?: any;
contextTypes?: any;
defaultProps?: Partial<P>;
Expand Down

0 comments on commit 78c22ee

Please sign in to comment.