Replace Luxon DateTime with number in ui-notification redux state

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-05-09 20:24:20 +02:00
parent 0d30b599d8
commit 5163cccca4
3 changed files with 6 additions and 4 deletions

View file

@ -42,7 +42,7 @@ export const dispatchUiNotification = async (
notification: {
titleI18nKey,
contentI18nKey,
date: DateTime.now(),
date: DateTime.now().toSeconds(),
dismissed: false,
titleI18nOptions: titleI18nOptions ?? {},
contentI18nOptions: contentI18nOptions ?? {},

View file

@ -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
}