Show error messages above post modal
This commit is contained in:
parent
36a3b54b7b
commit
66c8ab1a8c
1 changed files with 4 additions and 4 deletions
|
|
@ -26,10 +26,6 @@ class App extends React.Component {
|
||||||
timezone={this.props.timezone}
|
timezone={this.props.timezone}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{this.props.error && (
|
|
||||||
<Messages messages={[{ type: 'error', text: this.props.error.message }]} />
|
|
||||||
)}
|
|
||||||
|
|
||||||
{!isEqual(this.props.post, {}) && (
|
{!isEqual(this.props.post, {}) && (
|
||||||
<PostModal
|
<PostModal
|
||||||
post={this.props.post}
|
post={this.props.post}
|
||||||
|
|
@ -43,6 +39,10 @@ class App extends React.Component {
|
||||||
autoMarking={this.props.autoMarking}
|
autoMarking={this.props.autoMarking}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{this.props.error && (
|
||||||
|
<Messages messages={[{ type: 'error', text: this.props.error.message }]} />
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue