Skip to content

Commit

Permalink
docs: remove 0.23.0 badges
Browse files Browse the repository at this point in the history
- also Prettier does its thing with sytnax formatting
  • Loading branch information
theetrain committed Oct 31, 2017
1 parent d926740 commit 9376459
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 26 deletions.
3 changes: 0 additions & 3 deletions src/components/Input/Input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ const getWrapperClassName = (feedback, focus, disabled) => {
const showFeedbackIcon = (feedback, focus) =>
(feedback === 'success' || feedback === 'error') && !focus

/**
* <span class="docs--badge__new">new!</span> <span class="docs--badge__version">v0.23.0</span>
*/
class Input extends React.Component {
constructor(props) {
super(props)
Expand Down
13 changes: 3 additions & 10 deletions src/components/Lists/OrderedList/OrderedList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import OrderedItem from './OrderedItem'

import styles from './OrderedList.modules.scss'

/**
* <span class="docs--badge__new">new!</span> <span class="docs--badge__version">v0.23.0</span>
*/
const OrderedList = ({ listStyle, children, ...rest }) => (
<ol {...safeRest(rest)} className={styles[listStyle]}>
{children}
Expand All @@ -20,19 +17,15 @@ OrderedList.propTypes = {
/**
* The bullet style.
*/
listStyle: PropTypes.oneOf([
'decimal',
'upperAlpha',
'lowerAlpha'
]),
listStyle: PropTypes.oneOf(['decimal', 'upperAlpha', 'lowerAlpha']),
/**
* The list items. Must be at least one `OrderedList.Item`.
*/
children: childrenOfType(OrderedItem).isRequired
children: childrenOfType(OrderedItem).isRequired,
}

OrderedList.defaultProps = {
listStyle: 'decimal'
listStyle: 'decimal',
}

OrderedList.Item = OrderedItem
Expand Down
17 changes: 4 additions & 13 deletions src/components/Lists/UnorderedList/UnorderedList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ import UnorderedItem from './UnorderedItem/UnorderedItem'

import styles from '../List.modules.scss'

const injectListStyle = (child, listStyle) => (
React.cloneElement(child, { listStyle })
)
const injectListStyle = (child, listStyle) => React.cloneElement(child, { listStyle })

/**
* <span class="docs--badge__new">new!</span> <span class="docs--badge__version">v0.23.0</span>
*/
const UnorderedList = ({ listStyle, children, ...rest }) => {
return (
<ul {...safeRest(rest)} className={styles.base}>
Expand All @@ -26,19 +21,15 @@ UnorderedList.propTypes = {
/**
* The bullet style.
*/
listStyle: PropTypes.oneOf([
'circle',
'checkmark',
'x'
]),
listStyle: PropTypes.oneOf(['circle', 'checkmark', 'x']),
/**
* The list items. Must be at least one `UnorderedList.Item`.
*/
children: childrenOfType(UnorderedItem).isRequired
children: childrenOfType(UnorderedItem).isRequired,
}

UnorderedList.defaultProps = {
listStyle: 'circle'
listStyle: 'circle',
}

UnorderedList.Item = UnorderedItem
Expand Down

0 comments on commit 9376459

Please sign in to comment.