Grouped Notifications UI (#30440)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com> Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
		
					parent
					
						
							
								7d090b2ab6
							
						
					
				
			
			
				commit
				
					
						f587ff643f
					
				
			
		
					 65 changed files with 3329 additions and 131 deletions
				
			
		|  | @ -13,6 +13,7 @@ import { cancelReplyCompose } from 'mastodon/actions/compose'; | |||
| import { Icon } from 'mastodon/components/icon'; | ||||
| import { IconButton } from 'mastodon/components/icon_button'; | ||||
| import { RelativeTimestamp } from 'mastodon/components/relative_timestamp'; | ||||
| import { EmbeddedStatusContent } from 'mastodon/features/notifications_v2/components/embedded_status_content'; | ||||
| 
 | ||||
| const messages = defineMessages({ | ||||
|   cancel: { id: 'reply_indicator.cancel', defaultMessage: 'Cancel' }, | ||||
|  | @ -33,8 +34,6 @@ export const EditIndicator = () => { | |||
|     return null; | ||||
|   } | ||||
| 
 | ||||
|   const content = { __html: status.get('contentHtml') }; | ||||
| 
 | ||||
|   return ( | ||||
|     <div className='edit-indicator'> | ||||
|       <div className='edit-indicator__header'> | ||||
|  | @ -49,7 +48,12 @@ export const EditIndicator = () => { | |||
|         </div> | ||||
|       </div> | ||||
| 
 | ||||
|       <div className='edit-indicator__content translate' dangerouslySetInnerHTML={content} /> | ||||
|       <EmbeddedStatusContent | ||||
|         className='edit-indicator__content translate' | ||||
|         content={status.get('contentHtml')} | ||||
|         language={status.get('language')} | ||||
|         mentions={status.get('mentions')} | ||||
|       /> | ||||
| 
 | ||||
|       {(status.get('poll') || status.get('media_attachments').size > 0) && ( | ||||
|         <div className='edit-indicator__attachments'> | ||||
|  |  | |||
|  | @ -9,6 +9,7 @@ import PhotoLibraryIcon from '@/material-icons/400-24px/photo_library.svg?react' | |||
| import { Avatar } from 'mastodon/components/avatar'; | ||||
| import { DisplayName } from 'mastodon/components/display_name'; | ||||
| import { Icon } from 'mastodon/components/icon'; | ||||
| import { EmbeddedStatusContent } from 'mastodon/features/notifications_v2/components/embedded_status_content'; | ||||
| 
 | ||||
| export const ReplyIndicator = () => { | ||||
|   const inReplyToId = useSelector(state => state.getIn(['compose', 'in_reply_to'])); | ||||
|  | @ -19,8 +20,6 @@ export const ReplyIndicator = () => { | |||
|     return null; | ||||
|   } | ||||
| 
 | ||||
|   const content = { __html: status.get('contentHtml') }; | ||||
| 
 | ||||
|   return ( | ||||
|     <div className='reply-indicator'> | ||||
|       <div className='reply-indicator__line' /> | ||||
|  | @ -34,7 +33,12 @@ export const ReplyIndicator = () => { | |||
|           <DisplayName account={account} /> | ||||
|         </Link> | ||||
| 
 | ||||
|         <div className='reply-indicator__content translate' dangerouslySetInnerHTML={content} /> | ||||
|         <EmbeddedStatusContent | ||||
|           className='reply-indicator__content translate' | ||||
|           content={status.get('contentHtml')} | ||||
|           language={status.get('language')} | ||||
|           mentions={status.get('mentions')} | ||||
|         /> | ||||
| 
 | ||||
|         {(status.get('poll') || status.get('media_attachments').size > 0) && ( | ||||
|           <div className='reply-indicator__attachments'> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue