Enable @typescript-eslint/explicit-member-accessibility on /src (#9785)

* Enable `@typescript-eslint/explicit-member-accessibility` on /src

* Prettier
This commit is contained in:
Michael Telatynski 2022-12-16 12:29:59 +00:00 committed by GitHub
parent 51554399fb
commit f1e8e7f140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
396 changed files with 1110 additions and 1098 deletions

View file

@ -52,7 +52,7 @@ interface IState {
export default class VideoFeed extends React.PureComponent<IProps, IState> {
private element: HTMLVideoElement;
constructor(props: IProps) {
public constructor(props: IProps) {
super(props);
this.state = {
@ -61,16 +61,16 @@ export default class VideoFeed extends React.PureComponent<IProps, IState> {
};
}
componentDidMount() {
public componentDidMount() {
this.updateFeed(null, this.props.feed);
this.playMedia();
}
componentWillUnmount() {
public componentWillUnmount() {
this.updateFeed(this.props.feed, null);
}
componentDidUpdate(prevProps: IProps, prevState: IState) {
public componentDidUpdate(prevProps: IProps, prevState: IState) {
this.updateFeed(prevProps.feed, this.props.feed);
// If the mutes state has changed, we try to playMedia()
if (prevState.videoMuted !== this.state.videoMuted || prevProps.feed.stream !== this.props.feed.stream) {
@ -78,7 +78,7 @@ export default class VideoFeed extends React.PureComponent<IProps, IState> {
}
}
static getDerivedStateFromProps(props: IProps) {
public static getDerivedStateFromProps(props: IProps) {
return {
audioMuted: props.feed.isAudioMuted(),
videoMuted: props.feed.isVideoMuted(),
@ -177,7 +177,7 @@ export default class VideoFeed extends React.PureComponent<IProps, IState> {
}
};
render() {
public render() {
const { pipMode, primary, secondary, feed } = this.props;
const wrapperClasses = classnames("mx_VideoFeed", {