mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
dateCreated hotfix
This commit is contained in:
parent
2ad4937d05
commit
57e33d8407
@ -157,6 +157,7 @@ export default class Input extends PureComponent<InputProps, InputState> {
|
||||
<div className={wrapClass}>
|
||||
<DatePicker
|
||||
selected={this.state.startDate}
|
||||
// TODO: this needs to be able to receive this.props.onChange too
|
||||
onChange={this.handleDateChange}
|
||||
className={styles.input}
|
||||
onFocus={this.toggleFocus}
|
||||
|
@ -35,7 +35,7 @@ class Publish extends Component<{}, PublishState> {
|
||||
public state = {
|
||||
currentStep: 1,
|
||||
name: '',
|
||||
dateCreated: '',
|
||||
dateCreated: new Date().toISOString(),
|
||||
description: '',
|
||||
files: [],
|
||||
price: 0,
|
||||
@ -106,7 +106,7 @@ class Publish extends Component<{}, PublishState> {
|
||||
private toStart = () => {
|
||||
this.setState({
|
||||
name: '',
|
||||
dateCreated: '',
|
||||
dateCreated: new Date().toISOString(),
|
||||
description: '',
|
||||
files: [],
|
||||
price: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user