-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Styling fixes from #2874
- Loading branch information
Showing
17 changed files
with
167 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
webapp/src/component/layout/Notifications/NotificationTypeMap.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { TaskAssignedItem } from 'tg.component/layout/Notifications/TaskAssignedItem'; | ||
import { TaskCompletedItem } from 'tg.component/layout/Notifications/TaskCompletedItem'; | ||
import { MfaEnabledItem } from 'tg.component/layout/Notifications/MfaEnabledItem'; | ||
import { MfaDisabledItem } from 'tg.component/layout/Notifications/MfaDisabledItem'; | ||
import { PasswordChangedItem } from 'tg.component/layout/Notifications/PasswordChangedItem'; | ||
import { components } from 'tg.service/apiSchema.generated'; | ||
import { NotificationItemProps } from 'tg.component/layout/Notifications/NotificationItem'; | ||
import React from 'react'; | ||
|
||
type NotificationsComponentMap = Record< | ||
components['schemas']['NotificationModel']['type'], | ||
React.FC<NotificationItemProps> | ||
>; | ||
|
||
export const notificationComponents: NotificationsComponentMap = { | ||
TASK_ASSIGNED: TaskAssignedItem, | ||
TASK_COMPLETED: TaskCompletedItem, | ||
MFA_ENABLED: MfaEnabledItem, | ||
MFA_DISABLED: MfaDisabledItem, | ||
PASSWORD_CHANGED: PasswordChangedItem, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.