From e226551eca406591626e9699750940193477a523 Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Wed, 15 Jan 2025 11:28:24 +0800 Subject: [PATCH] mattermost: remove unsupported edition message from menu --- .../mattermost-remove-free-banner.patch | 65 ++++++++++++++++--- 1 file changed, 56 insertions(+), 9 deletions(-) diff --git a/nixbld-etc-nixos/mattermost-remove-free-banner.patch b/nixbld-etc-nixos/mattermost-remove-free-banner.patch index 3bd9502..3e5dfd0 100644 --- a/nixbld-etc-nixos/mattermost-remove-free-banner.patch +++ b/nixbld-etc-nixos/mattermost-remove-free-banner.patch @@ -127,11 +127,24 @@ index 8cd1d8a624..55554fb0ad 100644 { - role='menuitem' - id={props.id} - > + + const MenuStartTrial = (props: Props): JSX.Element | null => { +- const {formatMessage} = useIntl(); +- + const license = useSelector(getLicense); + const isCurrentLicensed = license?.IsLicensed; + +@@ -44,33 +19,7 @@ const MenuStartTrial = (props: Props): JSX.Element | null => { + return null; + } + +- return ( +- +- ); ++ return null; + }; + + export default MenuStartTrial;