aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/tutorials/onboarding/LanguageStep.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/tutorials/onboarding/LanguageStep.js')
-rw-r--r--server/sonar-web/src/main/js/apps/tutorials/onboarding/LanguageStep.js21
1 files changed, 13 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/LanguageStep.js b/server/sonar-web/src/main/js/apps/tutorials/onboarding/LanguageStep.js
index 55e030422fb..282b86150ae 100644
--- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/LanguageStep.js
+++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/LanguageStep.js
@@ -23,13 +23,16 @@ import NewProjectForm from './NewProjectForm';
import RadioToggle from '../../../components/controls/RadioToggle';
import { translate } from '../../../helpers/l10n';
+/*::
type Props = {|
onDone: (result: Result) => void,
onReset: () => void,
organization?: string,
sonarCloud: boolean
|};
+*/
+/*::
type State = {
language?: string,
javaBuild?: string,
@@ -37,15 +40,17 @@ type State = {
os?: string,
projectKey?: string
};
+*/
-export type Result = State;
+/*::
+export type Result = State; */
export default class LanguageStep extends React.PureComponent {
- props: Props;
+ /*:: props: Props; */
static defaultProps = { sonarCloud: false };
- state: State = {};
+ state /*: State */ = {};
isConfigured = () => {
const { language, javaBuild, cFamilyCompiler, os, projectKey } = this.state;
@@ -66,23 +71,23 @@ export default class LanguageStep extends React.PureComponent {
}
};
- handleLanguageChange = (language: string) => {
+ handleLanguageChange = (language /*: string */) => {
this.setState({ language }, this.handleChange);
};
- handleJavaBuildChange = (javaBuild: string) => {
+ handleJavaBuildChange = (javaBuild /*: string */) => {
this.setState({ javaBuild }, this.handleChange);
};
- handleCFamilyCompilerChange = (cFamilyCompiler: string) => {
+ handleCFamilyCompilerChange = (cFamilyCompiler /*: string */) => {
this.setState({ cFamilyCompiler }, this.handleChange);
};
- handleOSChange = (os: string) => {
+ handleOSChange = (os /*: string */) => {
this.setState({ os }, this.handleChange);
};
- handleProjectKeyDone = (projectKey: string) => {
+ handleProjectKeyDone = (projectKey /*: string */) => {
this.setState({ projectKey }, this.handleChange);
};