Move button to its own component

fix css linting errors
This commit is contained in:
2017-02-13 11:54:13 +00:00
parent 75e3631f4f
commit f5cf846259
10 changed files with 72 additions and 99 deletions

View File

@@ -2,6 +2,7 @@ import React, { PropTypes } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './AdminPeople.css';
import Link from '../../components/Link';
import Button from '../../components/Button';
class AdminPeople extends React.Component {
static propTypes = {
@@ -41,9 +42,9 @@ class AdminPeople extends React.Component {
<td>
<form method="post" action="/admin/person/delete">
<input type="hidden" name="key" value={person.key} />
<button className={s.button} type="submit">
<Button type="submit">
Delete
</button>
</Button>
</form>
</td>
</tr>
@@ -98,9 +99,9 @@ class AdminPeople extends React.Component {
/>
</div>
<div className={s.formGroup}>
<button className={s.button} type="submit">
<Button type="submit">
Save
</button>
</Button>
</div>
</form>
</div>