diff --git a/src/main/frontend/components/administration/MessageManagement.tsx b/src/main/frontend/components/administration/MessageManagement.tsx index 43a7fd0..b837378 100644 --- a/src/main/frontend/components/administration/MessageManagement.tsx +++ b/src/main/frontend/components/administration/MessageManagement.tsx @@ -55,7 +55,7 @@ function MessageManagementLayout({getConfig, getConfigs, formik}: any) {
-
+
Test
-
+
{availableTemplates.map((template: MessageTemplateDto) => diff --git a/src/main/frontend/components/administration/messages/SendTestNotificationModal.tsx b/src/main/frontend/components/administration/messages/SendTestNotificationModal.tsx index e73fde4..8832672 100644 --- a/src/main/frontend/components/administration/messages/SendTestNotificationModal.tsx +++ b/src/main/frontend/components/administration/messages/SendTestNotificationModal.tsx @@ -34,6 +34,7 @@ export default function SendTestNotificationModal({ <> { await MessageEndpoint.sendTestNotification(selectedTemplate?.key, values); toast.success("Test notification to you has been sent"); @@ -41,25 +42,28 @@ export default function SendTestNotificationModal({ }} validationSchema={generateValidationSchema(selectedTemplate?.availablePlaceholders as string[])} > -
- - Send {selectedTemplate?.name} Test Message - - -

Fill the placeholders of the template

- {selectedTemplate?.availablePlaceholders?.map((placeholder) => - - )} -
- - - - -
+ {(formik) => ( +
+ + Send {selectedTemplate?.name} Test Message + + +

Fill the placeholders of the + template

+ {selectedTemplate?.availablePlaceholders?.map((placeholder) => + + )} +
+ + + + +
+ )}
)} diff --git a/src/main/frontend/components/administration/withConfigPage.tsx b/src/main/frontend/components/administration/withConfigPage.tsx index c936093..88bb44a 100644 --- a/src/main/frontend/components/administration/withConfigPage.tsx +++ b/src/main/frontend/components/administration/withConfigPage.tsx @@ -139,7 +139,7 @@ export default function withConfigPage(WrappedComponent: React.ComponentType {formik.isSubmitting ? "" : configSaved ? : "Save"} diff --git a/src/main/frontend/components/general/UserManagementCard.tsx b/src/main/frontend/components/general/UserManagementCard.tsx index 794d8b6..cde7fbb 100644 --- a/src/main/frontend/components/general/UserManagementCard.tsx +++ b/src/main/frontend/components/general/UserManagementCard.tsx @@ -130,7 +130,7 @@ export function UserManagementCard({user}: { user: UserInfoDto }) { - + {(item) => (