1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-04-05 03:12:25 +02:00

fix alerts

This commit is contained in:
Kushagra Gour 2018-06-14 02:12:15 +05:30
parent 253f168f2c
commit 1757883183
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,12 @@
import { h, Component } from 'preact';
import { log } from '../utils';
export class Alerts extends Component {
shouldComponentUpdate(nextProps, nextState) {
return false;
}
render() {
return <div class="alerts-container" id="js-alerts-container" />;
}
}

View File

@ -33,6 +33,7 @@ import SupportDeveloperModal from './SupportDeveloperModal';
import KeyboardShortcutsModal from './KeyboardShortcutsModal';
import { takeScreenshot } from '../takeScreenshot';
import AskToImportModal from './AskToImportModal';
import { Alerts } from './Alerts';
if (module.hot) {
require('preact/debug');
@ -990,7 +991,9 @@ export default class App extends Component {
itemForkBtnClickHandler={this.itemForkBtnClickHandler.bind(this)}
exportBtnClickHandler={this.exportBtnClickHandler.bind(this)}
/>
<div class="alerts-container" id="js-alerts-container" />
<Alerts />
<form
style="display:none;"
action="https://codepen.io/pen/define"