Removed react-css-modules
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
import React from 'react';
|
||||
import Box from '../UI/Box/Box';
|
||||
import Button from '../UI/Button/Button';
|
||||
import CSSModules from 'react-css-modules';
|
||||
import styles from './ErrorDetails.css';
|
||||
import './ErrorDetails.css';
|
||||
|
||||
export default CSSModules((props) => {
|
||||
export default props => {
|
||||
return (
|
||||
<Box dxStyle={{padding: '8px'}}>
|
||||
<h1 styleName='Heading'>Application Error</h1>
|
||||
<div styleName='Content'>
|
||||
<h1 className={'ErrorDetailsHeading'}>Application Error</h1>
|
||||
<div className={'ErrorDetailsContent'}>
|
||||
<p>{props.error.toString()}</p>
|
||||
</div>
|
||||
<Button clicked={props.closed}>Dismiss</Button>
|
||||
</Box>
|
||||
);
|
||||
|
||||
}, styles, {allowMultiple: true});
|
||||
};
|
||||
Reference in New Issue
Block a user