Skip to content

Commit 086f498

Browse files
authored
Merge pull request #1084 from rvsia/fixDemoExamples
Fix all demo examples and remove the alert
2 parents b176092 + add5e32 commit 086f498

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

packages/react-renderer-demo/src/components/component-example.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import Box from '@material-ui/core/Box';
1919
import LinkIcon from '@material-ui/icons/Link';
2020
import Button from '@material-ui/core/Button';
2121
import ButtonGroup from '@material-ui/core/ButtonGroup';
22-
import Alert from '@material-ui/lab/Alert';
2322

2423
import Link from 'next/link';
2524
import clsx from 'clsx';
@@ -165,16 +164,9 @@ const ComponentExample = ({ variants, schema, activeMapper, component }) => {
165164
));
166165

167166
const activeComponent = correctComponent(component);
168-
const showAlert = !['mui', 'pf4', 'ant'].includes(activeMapper);
169167

170168
return (
171169
<React.Fragment>
172-
{showAlert && (
173-
<Alert severity="warning" className={classes.alert}>
174-
Currently, we are dealing with &quot;Import error, cannot find file: ./cjs/react-is.development.js&quot; error that appears in examples
175-
using react-jss. Thank you for your understanding
176-
</Alert>
177-
)}
178170
<Box display="flex" className={classes.box}>
179171
<Card style={{ minHeight: 500 }} square>
180172
<CardContent>

packages/react-renderer-demo/src/stackblitz-templates/blueprint-templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ render(<App />, document.getElementById('root'));`;
6969
export const dependencies = {
7070
react: 'latest',
7171
'react-dom': 'latest',
72-
'@babel/runtime': '7.12.1',
72+
'@babel/runtime': '^7.12.1',
7373
'@data-driven-forms/react-form-renderer': 'latest',
7474
'@data-driven-forms/blueprint-component-mapper': 'latest',
7575
'@data-driven-forms/common': 'latest',

packages/react-renderer-demo/src/stackblitz-templates/carbon-templates.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,6 @@ export const dependencies = {
7373
'carbon-components-react': 'latest',
7474
'carbon-icons': 'latest',
7575
'prop-types': 'latest',
76-
'@babel/runtime': '^7.12.1'
76+
'@babel/runtime': '^7.12.1',
77+
clsx: 'latest'
7778
};

packages/react-renderer-demo/src/stackblitz-templates/suir-template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ class App extends Component {
6262
render(<App />, document.getElementById('root'));`;
6363

6464
export const dependencies = {
65-
react: '^16.12.0',
66-
'react-dom': '^16.12.0',
65+
react: 'latest',
66+
'react-dom': 'latest',
6767
'@babel/runtime': '^7.13.10',
6868
'@data-driven-forms/react-form-renderer': 'latest',
6969
'@data-driven-forms/suir-component-mapper': 'latest',

0 commit comments

Comments
 (0)