mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-04 08:49:59 -04:00
Switch the base framework from Create React App to Next.JS
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a979b6ffdd
commit
77a60c6c48
361 changed files with 5130 additions and 9605 deletions
|
@ -6,14 +6,14 @@
|
|||
|
||||
import React from 'react'
|
||||
import { UiNotificationToast } from './ui-notification-toast'
|
||||
import './notifications.scss'
|
||||
import styles from './notifications.module.scss'
|
||||
import { useApplicationState } from '../../hooks/common/use-application-state'
|
||||
|
||||
export const UiNotifications: React.FC = () => {
|
||||
const notifications = useApplicationState((state) => state.uiNotifications)
|
||||
|
||||
return (
|
||||
<div className={'notifications-area'} aria-live='polite' aria-atomic='true'>
|
||||
<div className={styles['notifications-area']} aria-live='polite' aria-atomic='true'>
|
||||
{notifications.map((notification, notificationIndex) => (
|
||||
<UiNotificationToast key={notificationIndex} notificationId={notificationIndex} {...notification} />
|
||||
))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue