Initial commit
This commit is contained in:
25
src/components/DependencyList/Dependency/Dependency.js
Normal file
25
src/components/DependencyList/Dependency/Dependency.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import React from 'react';
|
||||
import CSSModules from 'react-css-modules';
|
||||
import styles from './Dependency.css';
|
||||
|
||||
export default CSSModules((props) => {
|
||||
return (
|
||||
<div styleName='Dependency'>
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="35%">
|
||||
<h3>{props.name}</h3>
|
||||
</td>
|
||||
<td>
|
||||
{props.allowDownload ?
|
||||
<a styleName='Link' href={void(0)} onClick={()=>{props.onDownload(props.download); return false;}}><u>Install</u></a> :
|
||||
'Installing...'}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
);
|
||||
|
||||
}, styles, {allowMultiple: true});
|
||||
Reference in New Issue
Block a user