Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade demo dependencies (react 18, react-scripts 5) #218

Merged
merged 7 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"@types/d3-ease": "^1.0.8",
"@types/jest": "24.0.11",
"@types/node": "11.13.6",
"@types/react": "16.8.14",
"@types/react-dom": "16.8.4",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"classnames": "^2.2.6",
"d3-ease": "^1.0.5",
"gh-pages": "^2.0.1",
"lodash": "^4.17.15",
"react": "^17.0.2",
"react": "^18.0.0",
"react-circular-progressbar": "../",
"react-dom": "^16.9.0",
"react-dom": "^18.0.0",
"react-move": "^5.2.1",
"react-scripts": "3.4.1",
"react-scripts": "^5.0.0",
"typescript": "3.4.4"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions demo/src/Demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const Code: React.FunctionComponent<React.HTMLProps<HTMLSpanElement>> = (props)
<code className={classNames('p-1 bg-yellow text-dark', props.className)} {...props} />
);

const Example: React.FunctionComponent<{ description: React.ReactNode }> = ({
description,
children,
}) => (
const Example: React.FunctionComponent<{
description: React.ReactNode;
children: React.ReactNode;
}> = ({ description, children }) => (
<div className="col-12 col-sm-6 col-md-4 mt-5">
<div className="row">
<div className="col-6 col-md-4 offset-3 offset-md-4">{children}</div>
Expand Down
Loading