From 23391aad022478acb38c56823d3042ac2a271d3d Mon Sep 17 00:00:00 2001 From: juliajforesti Date: Mon, 29 Jul 2024 16:14:50 -0300 Subject: [PATCH] add changes to duplicated files --- .../CreateChannel/CreateChannelModal.tsx | 174 ++++++++++-------- .../header/CreateTeam/CreateTeamModal.tsx | 128 +++++++------ 2 files changed, 166 insertions(+), 136 deletions(-) diff --git a/apps/meteor/client/sidebar/header/CreateChannel/CreateChannelModal.tsx b/apps/meteor/client/sidebar/header/CreateChannel/CreateChannelModal.tsx index c45d300dc4c7..02aadb540f31 100644 --- a/apps/meteor/client/sidebar/header/CreateChannel/CreateChannelModal.tsx +++ b/apps/meteor/client/sidebar/header/CreateChannel/CreateChannelModal.tsx @@ -12,6 +12,8 @@ import { FieldError, FieldHint, FieldDescription, + Accordion, + AccordionItem, } from '@rocket.chat/fuselage'; import { useUniqueId } from '@rocket.chat/fuselage-hooks'; import type { TranslationKey } from '@rocket.chat/ui-contexts'; @@ -210,7 +212,7 @@ const CreateChannelModal = ({ teamId = '', onClose, reload }: CreateChannelModal - + {t('Name')} @@ -276,90 +278,100 @@ const CreateChannelModal = ({ teamId = '', onClose, reload }: CreateChannelModal {isPrivate ? t('People_can_only_join_by_being_invited') : t('Anyone_can_access')} - - - {t('Federation_Matrix_Federated')} - ( - + + + + + + {t('Security_and_permissions')} + + + + {t('Federation_Matrix_Federated')} + ( + + )} /> - )} - /> - - {t(getFederationHintKey(federatedModule, federationEnabled))} - - - - {t('Encrypted')} - ( - + {t(getFederationHintKey(federatedModule, federationEnabled))} + + + + {t('Encrypted')} + ( + + )} /> - )} - /> - - {getEncryptedHint({ isPrivate, broadcast, encrypted })} - - - - {t('Read_only')} - ( - + {getEncryptedHint({ isPrivate, broadcast, encrypted })} + + + + {t('Read_only')} + ( + + )} /> - )} - /> - - - {readOnly ? t('Read_only_field_hint_enabled', { roomType: 'channel' }) : t('Anyone_can_send_new_messages')} - - - - - {t('Broadcast')} - ( - + + {readOnly ? t('Read_only_field_hint_enabled', { roomType: 'channel' }) : t('Anyone_can_send_new_messages')} + + + + + {t('Broadcast')} + ( + + )} /> - )} - /> - - {broadcast && {t('Broadcast_hint_enabled', { roomType: 'channel' })}} - - + + {broadcast && {t('Broadcast_hint_enabled', { roomType: 'channel' })}} + + + + diff --git a/apps/meteor/client/sidebar/header/CreateTeam/CreateTeamModal.tsx b/apps/meteor/client/sidebar/header/CreateTeam/CreateTeamModal.tsx index b56bb003aa9e..dcdf78589e6c 100644 --- a/apps/meteor/client/sidebar/header/CreateTeam/CreateTeamModal.tsx +++ b/apps/meteor/client/sidebar/header/CreateTeam/CreateTeamModal.tsx @@ -12,6 +12,8 @@ import { FieldError, FieldDescription, FieldHint, + Accordion, + AccordionItem, } from '@rocket.chat/fuselage'; import { useUniqueId } from '@rocket.chat/fuselage-hooks'; import { @@ -169,7 +171,7 @@ const CreateTeamModal = ({ onClose }: { onClose: () => void }): ReactElement => {t('Teams_new_description')} - + {t('Teams_New_Name_Label')} @@ -229,62 +231,78 @@ const CreateTeamModal = ({ onClose }: { onClose: () => void }): ReactElement => {isPrivate ? t('People_can_only_join_by_being_invited') : t('Anyone_can_access')} - - - {t('Teams_New_Read_only_Label')} - ( - + + + + + + {t('Security_and_permissions')} + + + + {t('Teams_New_Encrypted_Label')} + ( + + )} /> - )} - /> - - - {readOnly ? t('Read_only_field_hint_enabled', { roomType: 'team' }) : t('Anyone_can_send_new_messages')} - - - - - {t('Teams_New_Encrypted_Label')} - ( - + {getEncryptedHint({ isPrivate, broadcast, encrypted })} + + + + {t('Teams_New_Read_only_Label')} + ( + + )} /> - )} - /> - - {getEncryptedHint({ isPrivate, broadcast, encrypted })} - - - - {t('Teams_New_Broadcast_Label')} - ( - - )} - /> - - {broadcast && {t('Teams_New_Broadcast_Description')}} - - + + + {readOnly ? t('Read_only_field_hint_enabled', { roomType: 'team' }) : t('Anyone_can_send_new_messages')} + + + + + {t('Teams_New_Broadcast_Label')} + ( + + )} + /> + + {broadcast && {t('Teams_New_Broadcast_Description')}} + + + +