Skip to content

Commit f6ebb50

Browse files
author
vikasrohit
committed
Merge pull request #76 from amolskh/TaggedValue-React-Component
Final Fixes - Tagged Value List components
2 parents 0a5c059 + 5216683 commit f6ebb50

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

components/TaggedValue/TaggedValue.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,3 @@ $accent: #59A7FF;
3838
background: $purple;
3939
}
4040
}
41-
.TaggedValueList {
42-
.items{
43-
white-space: normal;
44-
}
45-
.items-scroll {
46-
overflow-x: scroll;
47-
white-space: nowrap;
48-
}
49-
}

components/TaggedValue/TaggedValueList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import TaggedValue from './TaggedValue'
33
import classNames from 'classnames'
44

5-
require('./TaggedValue.scss')
5+
require('./TaggedValueList.scss')
66

77
const TaggedValueList = ({items, layout}) => {
88
const itemClass = classNames(
@@ -22,7 +22,7 @@ const TaggedValueList = ({items, layout}) => {
2222

2323
TaggedValueList.propTypes = {
2424
items : React.PropTypes.array,
25-
layout : React.PropTypes.string
25+
layout : React.PropTypes.oneOf(['scroll', 'wrap'])
2626
}
2727

2828
export default TaggedValueList
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.TaggedValueList {
2+
.items{
3+
white-space: normal;
4+
}
5+
.items-scroll {
6+
overflow-x: scroll;
7+
white-space: nowrap;
8+
}
9+
}

0 commit comments

Comments
 (0)