You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Rename decorator for clarity
This commit is contained in:
@@ -18,9 +18,9 @@ limitations under the License.
|
||||
|
||||
import React from 'react';
|
||||
import sdk from '../../../index';
|
||||
import {replaceComponent} from "../../../utils/replaceComponent";
|
||||
import {replaceableComponent} from "../../../utils/replaceableComponent";
|
||||
|
||||
@replaceComponent("views.auth.AuthPage")
|
||||
@replaceableComponent("views.auth.AuthPage")
|
||||
export default class AuthPage extends React.PureComponent {
|
||||
render() {
|
||||
const AuthFooter = sdk.getComponent('auth.AuthFooter');
|
||||
|
||||
@@ -17,6 +17,6 @@ limitations under the License.
|
||||
import React from 'react';
|
||||
import sdk from '../index';
|
||||
|
||||
export function replaceComponent(name: string, origComponent: React.Component) {
|
||||
export function replaceableComponent(name: string, origComponent: React.Component) {
|
||||
return () => sdk.getComponent(name) || origComponent;
|
||||
}
|
||||
Reference in New Issue
Block a user