-
Notifications
You must be signed in to change notification settings - Fork 89
react imports cleanup 1 #3840
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
base: release-23.x
Are you sure you want to change the base?
react imports cleanup 1 #3840
Changes from 7 commits
d361c33
86bf362
87d359e
dccbbdf
75a9397
a976647
fe2e684
9900797
1ae8650
f2596f3
46010d9
c3c2de3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| { | ||
| "presets": [ | ||
| ["@babel/preset-env", { "modules": false } ], | ||
| ["@babel/preset-react", { "useSpread": true } ], | ||
| ["@babel/preset-react", { "useSpread": true} ], | ||
| "@babel/preset-typescript" | ||
| ], | ||
| "env": { | ||
| "test": { | ||
| "presets": [ | ||
| ["@babel/preset-env", {}], | ||
| ["@babel/preset-react", { "useSpread": true } ], | ||
| ["@babel/preset-react", { "useSpread": true, "runtime": "automatic" } ], | ||
|
||
| "@babel/preset-typescript" | ||
| ] | ||
| } | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| import React from 'react'; | ||
| import renderer from 'react-test-renderer'; | ||
| import Avatar from './index'; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| import React from 'react'; | ||
| // React import needed to support JSX outside functions, if removed build-docs fails | ||
| import React, { forwardRef } from 'react'; | ||
|
||
| import PropTypes from 'prop-types'; | ||
| import BaseBadge from 'react-bootstrap/Badge'; | ||
|
|
||
| const Badge = React.forwardRef((props, ref) => <BaseBadge {...props} ref={ref} />); | ||
| const Badge = forwardRef((props, ref) => <BaseBadge {...props} ref={ref} />); | ||
|
|
||
| const STYLE_VARIANTS = [ | ||
| 'primary', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| import React from 'react'; | ||
| import renderer from 'react-test-renderer'; | ||
|
|
||
| import { ButtonToolbar } from './index'; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.