Explicitly specify all children props (#10312)

This commit is contained in:
Michael Telatynski
2023-03-08 13:28:07 +00:00
committed by GitHub
parent ad26925bb6
commit 80fc0997a4
32 changed files with 86 additions and 43 deletions

View File

@@ -16,11 +16,11 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import React from "react";
import React, { ReactNode } from "react";
import AuthFooter from "./AuthFooter";
export default class AuthPage extends React.PureComponent {
export default class AuthPage extends React.PureComponent<{ children: ReactNode }> {
public render(): React.ReactNode {
return (
<div className="mx_AuthPage">

View File

@@ -14,9 +14,9 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import React from "react";
import React, { ReactNode } from "react";
export default class CompleteSecurityBody extends React.PureComponent {
export default class CompleteSecurityBody extends React.PureComponent<{ children: ReactNode }> {
public render(): React.ReactNode {
return <div className="mx_CompleteSecurityBody">{this.props.children}</div>;
}