Explicitly specify all children
props (#10312)
This commit is contained in:
parent
ad26925bb6
commit
80fc0997a4
32 changed files with 86 additions and 43 deletions
|
@ -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">
|
||||
|
|
|
@ -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>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue