1import React from 'react';
2import PropTypes from 'prop-types';
3import { isUndefined } from 'lodash';
5const Spacing = ({ className, children, h, w }) => {
6 const h_cn = isUndefined(h) ? '' : `mt-${h}`;
7 const w_cn = isUndefined(w) ? '' : `ml-${w}`;
9 return <div className={`${h_cn} ${w_cn} ${className}`}>{children}</div>;
13 className: PropTypes.string,
14 children: PropTypes.node,
19Spacing.defaultProps = {
25export default Spacing;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list