1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-07 03:42:20 +03:00

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
396 changed files with 1110 additions and 1098 deletions

View File

@@ -25,7 +25,7 @@ interface IState {
}
export default class ToastContainer extends React.Component<{}, IState> {
constructor(props, context) {
public constructor(props, context) {
super(props, context);
this.state = {
toasts: ToastStore.sharedInstance().getToasts(),
@@ -39,7 +39,7 @@ export default class ToastContainer extends React.Component<{}, IState> {
ToastStore.sharedInstance().on("update", this.onToastStoreUpdate);
}
componentWillUnmount() {
public componentWillUnmount() {
ToastStore.sharedInstance().removeListener("update", this.onToastStoreUpdate);
}
@@ -50,7 +50,7 @@ export default class ToastContainer extends React.Component<{}, IState> {
});
};
render() {
public render() {
const totalCount = this.state.toasts.length;
const isStacked = totalCount > 1;
let toast;