Migrate Welcome to TypeScript
This commit is contained in:
parent
3b5266071e
commit
54bfe8ec1e
3 changed files with 8 additions and 14 deletions
src/components/views/auth
|
@ -23,7 +23,7 @@ const DIV_ID = 'mx_recaptcha';
|
|||
|
||||
interface IProps {
|
||||
sitePublicKey?: string;
|
||||
onCaptchaResponse: () => void;
|
||||
onCaptchaResponse: (response: string) => void;
|
||||
}
|
||||
|
||||
interface IState {
|
||||
|
|
|
@ -160,13 +160,3 @@ export default class CountryDropdown extends React.Component<IProps, IState> {
|
|||
</Dropdown>;
|
||||
}
|
||||
}
|
||||
|
||||
CountryDropdown.propTypes = {
|
||||
className: PropTypes.string,
|
||||
isSmall: PropTypes.bool,
|
||||
// if isSmall, show +44 in the selected value
|
||||
showPrefix: PropTypes.bool,
|
||||
onOptionChange: PropTypes.func.isRequired,
|
||||
value: PropTypes.string,
|
||||
disabled: PropTypes.bool,
|
||||
};
|
||||
|
|
|
@ -29,15 +29,19 @@ import { replaceableComponent } from "../../../utils/replaceableComponent";
|
|||
// translatable strings for Welcome pages
|
||||
_td("Sign in with SSO");
|
||||
|
||||
interface IProps {
|
||||
|
||||
}
|
||||
|
||||
@replaceableComponent("views.auth.Welcome")
|
||||
export default class Welcome extends React.PureComponent {
|
||||
constructor(props) {
|
||||
export default class Welcome extends React.PureComponent<IProps> {
|
||||
constructor(props: IProps) {
|
||||
super(props);
|
||||
|
||||
CountlyAnalytics.instance.track("onboarding_welcome");
|
||||
}
|
||||
|
||||
render() {
|
||||
public render(): React.ReactNode {
|
||||
const EmbeddedPage = sdk.getComponent('structures.EmbeddedPage');
|
||||
const LanguageSelector = sdk.getComponent('auth.LanguageSelector');
|
||||
|
Loading…
Reference in a new issue