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:
parent
6c8e33cfda
commit
7df355fae8
@ -1,16 +1,13 @@
|
||||
import React, { ChangeEvent, Component, FormEvent } from 'react'
|
||||
|
||||
interface IProps {
|
||||
|
||||
}
|
||||
import Button from '../components/atoms/Button'
|
||||
|
||||
interface IState {
|
||||
value?: string
|
||||
}
|
||||
|
||||
class Publish extends Component<IProps, IState> {
|
||||
class Publish extends Component<{}, IState> {
|
||||
|
||||
state = { value: '' }
|
||||
public state = { value: '' }
|
||||
|
||||
public render() {
|
||||
return (
|
||||
@ -21,7 +18,7 @@ class Publish extends Component<IProps, IState> {
|
||||
Name:
|
||||
<input type="text" name="value" value={this.state.value} onChange={this.inputChange} />
|
||||
</label>
|
||||
<input type="submit" value="Submit" />
|
||||
<Button>I am a button</Button>
|
||||
</form>
|
||||
</div>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user