updates eslint config, fixes linting errors

This commit is contained in:
Mose Müller
2024-07-08 08:30:55 +02:00
parent a2ee8d02d6
commit fb251649a0
27 changed files with 1739 additions and 161 deletions

View File

@@ -2,18 +2,18 @@ import React from "react";
import { ToastContainer, Toast } from "react-bootstrap";
export type LevelName = "CRITICAL" | "ERROR" | "WARNING" | "INFO" | "DEBUG";
export type Notification = {
export interface Notification {
id: number;
timeStamp: string;
message: string;
levelname: LevelName;
};
}
type NotificationProps = {
interface NotificationProps {
showNotification: boolean;
notifications: Notification[];
removeNotificationById: (id: number) => void;
};
}
export const Notifications = React.memo((props: NotificationProps) => {
const { showNotification, notifications, removeNotificationById } = props;