From c08c16012848b59e1a1abf4ba48dd992006d9700 Mon Sep 17 00:00:00 2001
From: Muhammad Hamza <120543468+hamza-deriv@users.noreply.github.com>
Date: Wed, 18 Oct 2023 18:47:43 +0800
Subject: [PATCH] Hamza/cfds 1196/enable mt5 notification message (#10696)
* chore: update trade modal broker name + notifications content updated
* chore: updated boker name
* chore: notification popup for mt5 awareness
* chore: notification popup close on cta and change the color because of dark mode
* refactor: update the url and hardcoded values
* chore: revert the Broker Name changes
---
.../mt5-notification-description.tsx | 74 +++++++++----------
.../mt5-notification/mt5-notification.scss | 15 ++--
.../mt5-notification/mt5-notification.tsx | 8 +-
.../Containers/app-notification-messages.jsx | 1 +
.../core/src/Stores/notification-store.js | 5 +-
packages/shared/src/utils/cfd/cfd.ts | 3 +
6 files changed, 52 insertions(+), 54 deletions(-)
diff --git a/packages/core/src/App/Containers/Modals/mt5-notification/mt5-notification-description.tsx b/packages/core/src/App/Containers/Modals/mt5-notification/mt5-notification-description.tsx
index 1ba514b12f80..469d6397c0eb 100644
--- a/packages/core/src/App/Containers/Modals/mt5-notification/mt5-notification-description.tsx
+++ b/packages/core/src/App/Containers/Modals/mt5-notification/mt5-notification-description.tsx
@@ -1,60 +1,52 @@
import React from 'react';
import { Text } from '@deriv/components';
import { Localize } from '@deriv/translations';
+import { mt5_community_url } from '@deriv/shared';
-const MT5NotificationDescription = () => {
+type TMT5NotificationDescription = {
+ setMT5NotificationModal: (value: boolean) => void;
+};
+const MT5NotificationDescription = ({ setMT5NotificationModal }: TMT5NotificationDescription) => {
return (
-
-
-
-
-
-
-
-
-
-
- ]}
- />
-
-
-
-
- ]}
- />
-
-
-
-
-
+
]}
+ i18n_default_text='Log back in to MT5 after 7:30 GMT on 20 Oct 2023 if you’re having difficulty logging in to MT5 as we’re making some updates to our MT5 platform. <0>Follow these steps0> to log back in to MT5.'
+ components={[
+ {
+ setMT5NotificationModal(false);
+ }}
+ />,
+ ]}
/>