mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 03:27:05 -04:00
Replace Luxon DateTime with number in ui-notification redux state
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
0d30b599d8
commit
5163cccca4
3 changed files with 6 additions and 4 deletions
|
@ -42,7 +42,7 @@ export const dispatchUiNotification = async (
|
|||
notification: {
|
||||
titleI18nKey,
|
||||
contentI18nKey,
|
||||
date: DateTime.now(),
|
||||
date: DateTime.now().toSeconds(),
|
||||
dismissed: false,
|
||||
titleI18nOptions: titleI18nOptions ?? {},
|
||||
contentI18nOptions: contentI18nOptions ?? {},
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
*/
|
||||
|
||||
import type { Action } from 'redux'
|
||||
import type { DateTime } from 'luxon'
|
||||
import type { IconName } from '../../components/common/fork-awesome/types'
|
||||
import type { TOptions } from 'i18next'
|
||||
|
||||
|
@ -30,7 +29,7 @@ export interface DispatchOptions {
|
|||
export interface UiNotification extends DispatchOptions {
|
||||
titleI18nKey: string
|
||||
contentI18nKey: string
|
||||
date: DateTime
|
||||
date: number
|
||||
dismissed: boolean
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue