This repository has been archived by the owner on Nov 2, 2019. It is now read-only.
-
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.
- Loading branch information
Showing
9 changed files
with
284 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
import React from 'react' | ||
|
||
class Module extends React.Component { | ||
|
||
render () { | ||
let props = this.props | ||
let mod = props.module | ||
let optional = mod.optional ? <span className='h6 regular black'>Optional</span> : false | ||
let styles = { | ||
label: { | ||
cursor: 'pointer' | ||
} | ||
} | ||
return ( | ||
<label className={[ | ||
'py1 flex flex-center', | ||
(props.checked ? 'bg-aqua' : '') | ||
].join(' ')} | ||
style={styles.label}> | ||
<div className='mr1'> | ||
<input type='checkbox' | ||
name={mod.name} | ||
checked={props.checked} | ||
onChange={props.onSelect} /> | ||
</div> | ||
<div className='flex-auto'> | ||
<h4 className='m0'>{mod.name} {optional}</h4> | ||
<div className='h5'>{mod.description}</div> | ||
<div className='h6'>v{mod.version}</div> | ||
</div> | ||
</label> | ||
) | ||
} | ||
|
||
} | ||
|
||
export default Module | ||
|
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