From 01bd18b86a92f94a9048c8e3691d8534f563f7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 6 May 2022 12:43:27 +0200 Subject: [PATCH] fix(notifications) remove unused isDismissAllowed prop --- .../components/AbstractNotification.js | 8 +------- .../components/native/Notification.js | 15 +++++---------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/react/features/notifications/components/AbstractNotification.js b/react/features/notifications/components/AbstractNotification.js index df61b37d1..f03c635a4 100644 --- a/react/features/notifications/components/AbstractNotification.js +++ b/react/features/notifications/components/AbstractNotification.js @@ -61,11 +61,6 @@ export type Props = { */ icon?: String, - /** - * Whether or not the dismiss button should be displayed. - */ - isDismissAllowed: boolean, - /** * Maximum lines of the description. */ @@ -116,8 +111,7 @@ export default class AbstractNotification extends Component

{ * @static */ static defaultProps = { - appearance: NOTIFICATION_TYPE.NORMAL, - isDismissAllowed: true + appearance: NOTIFICATION_TYPE.NORMAL }; /** diff --git a/react/features/notifications/components/native/Notification.js b/react/features/notifications/components/native/Notification.js index 0cc7cc908..5c9280ba2 100644 --- a/react/features/notifications/components/native/Notification.js +++ b/react/features/notifications/components/native/Notification.js @@ -32,8 +32,6 @@ class Notification extends AbstractNotification { * @returns {ReactElement} */ render() { - const { isDismissAllowed } = this.props; - return ( { } - { - isDismissAllowed - && - - - } + + + ); }