1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

button to form

This commit is contained in:
Jernej Pregelj 2019-01-23 15:37:31 +01:00
parent 6c8e33cfda
commit 7df355fae8

View File

@ -1,16 +1,13 @@
import React, { ChangeEvent, Component, FormEvent } from 'react' import React, { ChangeEvent, Component, FormEvent } from 'react'
import Button from '../components/atoms/Button'
interface IProps {
}
interface IState { interface IState {
value?: string value?: string
} }
class Publish extends Component<IProps, IState> { class Publish extends Component<{}, IState> {
state = { value: '' } public state = { value: '' }
public render() { public render() {
return ( return (
@ -21,7 +18,7 @@ class Publish extends Component<IProps, IState> {
Name: Name:
<input type="text" name="value" value={this.state.value} onChange={this.inputChange} /> <input type="text" name="value" value={this.state.value} onChange={this.inputChange} />
</label> </label>
<input type="submit" value="Submit" /> <Button>I am a button</Button>
</form> </form>
</div> </div>
) )