sforkowany z mirror/soapbox
Status: clean up now unused media methods, etc
rodzic
ba8379c753
commit
62d432a65d
|
@ -110,7 +110,6 @@ interface IStatusState {
|
||||||
showMedia: boolean,
|
showMedia: boolean,
|
||||||
statusId?: string,
|
statusId?: string,
|
||||||
emojiSelectorFocused: boolean,
|
emojiSelectorFocused: boolean,
|
||||||
mediaWrapperWidth?: number,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Status extends ImmutablePureComponent<IStatus, IStatusState> {
|
class Status extends ImmutablePureComponent<IStatus, IStatusState> {
|
||||||
|
@ -223,26 +222,6 @@ class Status extends ImmutablePureComponent<IStatus, IStatusState> {
|
||||||
this.props.onToggleHidden(this._properStatus());
|
this.props.onToggleHidden(this._properStatus());
|
||||||
};
|
};
|
||||||
|
|
||||||
renderLoadingMediaGallery(): JSX.Element {
|
|
||||||
return <div className='media_gallery' style={{ height: '285px' }} />;
|
|
||||||
}
|
|
||||||
|
|
||||||
renderLoadingVideoPlayer(): JSX.Element {
|
|
||||||
return <div className='media-spoiler-video' style={{ height: '285px' }} />;
|
|
||||||
}
|
|
||||||
|
|
||||||
renderLoadingAudioPlayer(): JSX.Element {
|
|
||||||
return <div className='media-spoiler-audio' style={{ height: '285px' }} />;
|
|
||||||
}
|
|
||||||
|
|
||||||
handleOpenVideo = (media: ImmutableMap<string, any>, startTime: number): void => {
|
|
||||||
this.props.onOpenVideo(media, startTime);
|
|
||||||
}
|
|
||||||
|
|
||||||
handleOpenAudio = (media: ImmutableMap<string, any>, startTime: number): void => {
|
|
||||||
this.props.onOpenAudio(media, startTime);
|
|
||||||
}
|
|
||||||
|
|
||||||
handleHotkeyOpenMedia = (e?: KeyboardEvent): void => {
|
handleHotkeyOpenMedia = (e?: KeyboardEvent): void => {
|
||||||
const { onOpenMedia, onOpenVideo } = this.props;
|
const { onOpenMedia, onOpenVideo } = this.props;
|
||||||
const status = this._properStatus();
|
const status = this._properStatus();
|
||||||
|
@ -336,12 +315,6 @@ class Status extends ImmutablePureComponent<IStatus, IStatusState> {
|
||||||
this.node = c;
|
this.node = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
setRef = (c: HTMLDivElement): void => {
|
|
||||||
if (c) {
|
|
||||||
this.setState({ mediaWrapperWidth: c.offsetWidth });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const poll = null;
|
const poll = null;
|
||||||
let prepend, rebloggedByText, reblogElement, reblogElementMobile;
|
let prepend, rebloggedByText, reblogElement, reblogElementMobile;
|
||||||
|
|
Ładowanie…
Reference in New Issue