Add toasts (#1073)

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2021-03-11 20:51:11 +01:00 committed by GitHub
parent 0b4a0afa16
commit a86789dbef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 320 additions and 13 deletions

View file

@ -32,6 +32,8 @@ import { Splitter } from './splitter/splitter'
import { DualScrollState, ScrollState } from './synced-scroll/scroll-props'
import { RendererType } from '../render-page/rendering-message'
import { useEditorModeFromUrl } from './hooks/useEditorModeFromUrl'
import { UiNotifications } from '../notifications/ui-notifications'
import { useNotificationTest } from './use-notification-test'
export interface EditorPagePathParams {
id: string
@ -82,8 +84,11 @@ export const EditorPage: React.FC = () => {
scrollSource.current = ScrollSource.EDITOR
}, [])
useNotificationTest()
return (
<Fragment>
<UiNotifications/>
<MotdBanner/>
<div className={ 'd-flex flex-column vh-100' }>
<AppBar mode={ AppBarMode.EDITOR }/>