Skip to content

Commit ad2fd91

Browse files
change block appearance to an error notice
1 parent a88b0ed commit ad2fd91

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

classes/Visualizer/Gutenberg/build/block.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

classes/Visualizer/Gutenberg/src/Editor.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const {
2929
ButtonGroup,
3030
Dashicon,
3131
Placeholder,
32+
Notice,
3233
Spinner
3334
} = wp.components;
3435

@@ -419,12 +420,13 @@ class Editor extends Component {
419420
render() {
420421
if ( 'error' === this.state.route ) {
421422
return (
422-
<div className="visualizer-settings visualizer-error">
423-
<div className="visualizer-settings__title">
423+
<Notice
424+
status="error"
425+
isDismissible={ false }
426+
>
424427
<Dashicon icon="chart-pie" />
425428
{ __( 'This chart is not available; it might have been deleted. Please delete this block and resubmit your chart.' ) }
426-
</div>
427-
</div>
429+
</Notice>
428430
);
429431
}
430432

0 commit comments

Comments
 (0)