Swap RichText (#2934)
				
					
				
			* Switch to new RT * Allow early exit from links * Build in tracking to text atoms * Clean up FeedSourceCard * Clean up leading after new default * Add deprecated notice
This commit is contained in:
		
							parent
							
								
									8a169dc6a1
								
							
						
					
					
						commit
						df5a8f1542
					
				
					 12 changed files with 65 additions and 43 deletions
				
			
		|  | @ -23,7 +23,7 @@ import * as Toast from '../util/Toast' | |||
| import {LoadingPlaceholder} from '../util/LoadingPlaceholder' | ||||
| import {Text} from '../util/text/Text' | ||||
| import {ThemedText} from '../util/text/ThemedText' | ||||
| import {RichText} from '../util/text/RichText' | ||||
| import {RichText} from '#/components/RichText' | ||||
| import {UserAvatar} from '../util/UserAvatar' | ||||
| import {UserBanner} from '../util/UserBanner' | ||||
| import {ProfileHeaderAlerts} from '../util/moderation/ProfileHeaderAlerts' | ||||
|  | @ -56,6 +56,7 @@ import {Shadow} from '#/state/cache/types' | |||
| import {useRequireAuth} from '#/state/session' | ||||
| import {LabelInfo} from '../util/moderation/LabelInfo' | ||||
| import {useProfileShadow} from 'state/cache/profile-shadow' | ||||
| import {atoms as a} from '#/alf' | ||||
| 
 | ||||
| let ProfileHeaderLoading = (_props: {}): React.ReactNode => { | ||||
|   const pal = usePalette('default') | ||||
|  | @ -608,12 +609,12 @@ let ProfileHeader = ({ | |||
|               </Text> | ||||
|             </View> | ||||
|             {descriptionRT && !moderation.profile.blur ? ( | ||||
|               <View pointerEvents="auto"> | ||||
|               <View pointerEvents="auto" style={[styles.description]}> | ||||
|                 <RichText | ||||
|                   testID="profileHeaderDescription" | ||||
|                   style={[styles.description, pal.text]} | ||||
|                   style={[a.text_md]} | ||||
|                   numberOfLines={15} | ||||
|                   richText={descriptionRT} | ||||
|                   value={descriptionRT} | ||||
|                 /> | ||||
|               </View> | ||||
|             ) : undefined} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue