Refactor <Video> to TypeScript (#34284)
		
	This commit is contained in:
		
					parent
					
						
							
								e28b64ac2d
							
						
					
				
			
			
				commit
				
					
						e5fd61a84e
					
				
			
		
					 22 changed files with 1219 additions and 756 deletions
				
			
		|  | @ -23,6 +23,7 @@ import { Icon } from 'mastodon/components/icon'; | |||
| import { IconLogo } from 'mastodon/components/logo'; | ||||
| import PictureInPicturePlaceholder from 'mastodon/components/picture_in_picture_placeholder'; | ||||
| import { VisibilityIcon } from 'mastodon/components/visibility_icon'; | ||||
| import { Video } from 'mastodon/features/video'; | ||||
| 
 | ||||
| import { Avatar } from '../../../components/avatar'; | ||||
| import { DisplayName } from '../../../components/display_name'; | ||||
|  | @ -30,7 +31,6 @@ import MediaGallery from '../../../components/media_gallery'; | |||
| import StatusContent from '../../../components/status_content'; | ||||
| import Audio from '../../audio'; | ||||
| import scheduleIdleTask from '../../ui/util/schedule_idle_task'; | ||||
| import Video from '../../video'; | ||||
| 
 | ||||
| import Card from './card'; | ||||
| 
 | ||||
|  | @ -38,7 +38,6 @@ interface VideoModalOptions { | |||
|   startTime: number; | ||||
|   autoPlay?: boolean; | ||||
|   defaultVolume: number; | ||||
|   componentIndex: number; | ||||
| } | ||||
| 
 | ||||
| export const DetailedStatus: React.FC<{ | ||||
|  | @ -221,8 +220,6 @@ export const DetailedStatus: React.FC<{ | |||
|           src={attachment.get('url')} | ||||
|           alt={description} | ||||
|           lang={language} | ||||
|           width={300} | ||||
|           height={150} | ||||
|           onOpenVideo={handleOpenVideo} | ||||
|           sensitive={status.get('sensitive')} | ||||
|           visible={showMedia} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue