Add label to SourceSelector

Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
pull/10616/head
Jared Scheib 2017-10-03 11:17:39 -07:00 committed by Alex Paxton
parent 7ef74d792f
commit 4d2a6b8492
2 changed files with 13 additions and 5 deletions

View File

@ -2,9 +2,10 @@ import React, {PropTypes} from 'react'
import Dropdown from 'shared/components/Dropdown'
const SourceSelector = ({sources = [], selected, onSetQuerySource}) =>
<div className="source-selector">
{sources.length > 1
? <Dropdown
sources.length > 1
? <div className="source-selector">
<h3>Source:</h3>
<Dropdown
items={sources}
buttonSize="btn-sm"
menuClass="dropdown-astronaut"
@ -13,8 +14,8 @@ const SourceSelector = ({sources = [], selected, onSetQuerySource}) =>
onChoose={onSetQuerySource}
className="dropdown-240"
/>
: null}
</div>
</div>
: null
const {arrayOf, func, shape, string} = PropTypes

View File

@ -8,4 +8,11 @@
align-items: center;
flex-wrap: nowrap;
flex: 1 0 0;
h3 {
margin: 0 4px 0 0;
font-size: 17px;
color: $g13-mist;
@include no-user-select();
}
}