feat: [FC-0044] Course unit - Copy/paste functionality (#884)
Implement copy/paste. Co-authored-by: monteri <36768631+monteri@users.noreply.github.com> Co-authored-by: ihor-romaniuk <ihor.romaniuk@raccoongang.com>
This commit is contained in:
16
src/generic/divider/Divider.jsx
Normal file
16
src/generic/divider/Divider.jsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
|
||||
const Divider = ({ className, ...props }) => (
|
||||
<div className={classNames('divider', className)} {...props} />
|
||||
);
|
||||
|
||||
Divider.propTypes = {
|
||||
className: PropTypes.string,
|
||||
};
|
||||
|
||||
Divider.defaultProps = {
|
||||
className: undefined,
|
||||
};
|
||||
|
||||
export default Divider;
|
||||
5
src/generic/divider/Divider.scss
Normal file
5
src/generic/divider/Divider.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
.divider {
|
||||
border-top: $border-width solid $light-400;
|
||||
height: 0;
|
||||
margin: $spacer map-get($spacers, 0);
|
||||
}
|
||||
2
src/generic/divider/index.jsx
Normal file
2
src/generic/divider/index.jsx
Normal file
@@ -0,0 +1,2 @@
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export { default as Divider } from './Divider';
|
||||
Reference in New Issue
Block a user