-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from partio-scout/feature/presence-change-in-…
…participant-details-page Feature/presence change in participant details page
- Loading branch information
Showing
7 changed files
with
75 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import { Input } from 'react-bootstrap'; | ||
import { getPresenceLabel } from '../../components'; | ||
|
||
export function PresenceSelector({ onChange, label, value }) { | ||
const presenceLabel = getPresenceLabel(1); | ||
const tmpOutCampLabel = getPresenceLabel(2); | ||
const outCampLabel = getPresenceLabel(3); | ||
|
||
return ( | ||
<Input type="select" label={ label } defaultValue="null" onChange={ onChange } value={ value }> | ||
<option value="null"></option> | ||
<option value="1">{ presenceLabel }</option> | ||
<option value="2">{ tmpOutCampLabel }</option> | ||
<option value="3">{ outCampLabel }</option> | ||
</Input> | ||
); | ||
} | ||
|
||
PresenceSelector.propTypes = { | ||
onChange: React.PropTypes.function, | ||
label: React.PropTypes.string, | ||
value: React.PropTypes.object, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters