-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Refactor message subcomponents (#27630)
- Loading branch information
Showing
155 changed files
with
1,506 additions
and
1,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
apps/meteor/app/ui-utils/client/lib/waitUntilWrapperExists.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import type { ReactElement } from 'react'; | ||
import React from 'react'; | ||
|
||
// @deprecated | ||
/** @deprecated */ | ||
const RawText = ({ children }: { children: string }): ReactElement => <span dangerouslySetInnerHTML={{ __html: children }} />; | ||
|
||
export default RawText; |
7 changes: 0 additions & 7 deletions
7
apps/meteor/client/components/message/Attachments/Attachment/AttachmentAction.tsx
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
apps/meteor/client/components/message/Attachments/Attachment/AttachmentCollapse.tsx
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
apps/meteor/client/components/message/Attachments/Attachment/index.tsx
This file was deleted.
Oops, something went wrong.
112 changes: 0 additions & 112 deletions
112
apps/meteor/client/components/message/Attachments/Attachments.stories.tsx
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
apps/meteor/client/components/message/Attachments/components/Retry.stories.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Box, Icon, MessageBody } from '@rocket.chat/fuselage'; | ||
import { useTranslation } from '@rocket.chat/ui-contexts'; | ||
import type { ReactElement } from 'react'; | ||
import React, { memo } from 'react'; | ||
|
||
type IgnoredContentProps = { | ||
onShowMessageIgnored: () => void; | ||
}; | ||
|
||
const IgnoredContent = ({ onShowMessageIgnored }: IgnoredContentProps): ReactElement => { | ||
const t = useTranslation(); | ||
|
||
const showMessageIgnored = (event: React.SyntheticEvent): void => { | ||
event.stopPropagation(); | ||
|
||
onShowMessageIgnored(); | ||
}; | ||
|
||
return ( | ||
<MessageBody data-qa-type='message-body'> | ||
<Box display='flex' alignItems='center' fontSize='x12' color='hint'> | ||
<p role='button' onClick={showMessageIgnored} style={{ cursor: 'pointer' }}> | ||
<Icon name='chevron-left' /> {t('Message_Ignored')} | ||
</p> | ||
</Box> | ||
</MessageBody> | ||
); | ||
}; | ||
|
||
export default memo(IgnoredContent); |
39 changes: 0 additions & 39 deletions
39
apps/meteor/client/components/message/MessageActions/Actions.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.