diff --git a/src/App.js b/src/App.js index bfa874c..ff71200 100644 --- a/src/App.js +++ b/src/App.js @@ -94,6 +94,7 @@ class App extends Component { copied: false, sidebar: true, codeView: false, + showNotification: false, currentKeyCode: null, view: 'desktop', theme: 'indigo', @@ -119,6 +120,9 @@ class App extends Component { componentDidMount() { document.addEventListener('keydown', this.keyboardNavigation); + setTimeout(() => { + this.setState({ showNotification: true }) + }, 1000); } hideSidebar() { @@ -315,13 +319,20 @@ class App extends Component { } render() { - const { darkMode, theme, blockName, blockType, sidebar, view, copied, currentKeyCode } = this.state; + const { darkMode, theme, blockName, blockType, sidebar, view, copied, currentKeyCode, showNotification } = this.state; return (