Move Welcome.js to tsx

This commit is contained in:
James Salter 2021-07-21 17:02:14 +01:00
parent b380a89ac6
commit e9e0e4847f

View file

@ -25,7 +25,7 @@ import SettingsStore from "../../../settings/SettingsStore";
import { UIFeature } from "../../../settings/UIFeature"; import { UIFeature } from "../../../settings/UIFeature";
import CountlyAnalytics from "../../../CountlyAnalytics"; import CountlyAnalytics from "../../../CountlyAnalytics";
import { replaceableComponent } from "../../../utils/replaceableComponent"; import { replaceableComponent } from "../../../utils/replaceableComponent";
import { getAnalytics } from "../../../PosthogAnalytics"; import { getAnalytics, IWelcomeScreenLoad } from "../../../PosthogAnalytics";
// translatable strings for Welcome pages // translatable strings for Welcome pages
_td("Sign in with SSO"); _td("Sign in with SSO");
@ -71,6 +71,6 @@ export default class Welcome extends React.PureComponent {
} }
componentDidMount() { componentDidMount() {
getAnalytics().trackAnonymousEvent("welcome_screen_load", {}); getAnalytics().trackAnonymousEvent<IWelcomeScreenLoad>("welcome_screen_load", { foo: "bar" });
} }
} }