mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 15:40:00 +00:00
- Moved all components into a single directory like nextjs - Made component names consistent with each other - Made component names consistent with their export class names - Added storybook for a few components with the aim to extend this further.
20 lines
333 B
JavaScript
20 lines
333 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import './SmallError.scss';
|
|
|
|
|
|
export default class SmallError extends React.Component {
|
|
static propTypes = {
|
|
children: PropTypes.node,
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<div className="SmallError">
|
|
Error: {this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|