Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
b0390f36
Commit
b0390f36
authored
Feb 26, 2021
by
Paul Kaplan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lint and missing components
parent
0353135c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/components/registration/phone-number-step.jsx
src/components/registration/phone-number-step.jsx
+6
-4
src/components/registration/steps.jsx
src/components/registration/steps.jsx
+2
-0
No files found.
src/components/registration/phone-number-step.jsx
View file @
b0390f36
...
@@ -15,6 +15,8 @@ const Slide = require('../../components/slide/slide.jsx');
...
@@ -15,6 +15,8 @@ const Slide = require('../../components/slide/slide.jsx');
const
StepNavigation
=
require
(
'
../../components/stepnavigation/stepnavigation.jsx
'
);
const
StepNavigation
=
require
(
'
../../components/stepnavigation/stepnavigation.jsx
'
);
const
Tooltip
=
require
(
'
../../components/tooltip/tooltip.jsx
'
);
const
Tooltip
=
require
(
'
../../components/tooltip/tooltip.jsx
'
);
const
{
DEFAULT_COUNTRY
,
NextStepButton
}
=
require
(
'
./steps.jsx
'
);
require
(
'
./steps.scss
'
);
require
(
'
./steps.scss
'
);
/*
/*
...
@@ -28,7 +30,7 @@ class PhoneNumberStep extends React.Component {
...
@@ -28,7 +30,7 @@ class PhoneNumberStep extends React.Component {
'
handleValidSubmit
'
'
handleValidSubmit
'
]);
]);
}
}
handleValidSubmit
(
formData
,
reset
,
invalidate
)
{
handleValidSubmit
(
formData
,
reset
,
invalidate
)
{
if
(
!
formData
.
phone
||
formData
.
phone
.
national_number
===
'
+
'
)
{
if
(
!
formData
.
phone
||
formData
.
phone
.
national_number
===
'
+
'
)
{
return
invalidate
({
return
invalidate
({
phone
:
this
.
props
.
intl
.
formatMessage
({
id
:
'
form.validationRequired
'
})
phone
:
this
.
props
.
intl
.
formatMessage
({
id
:
'
form.validationRequired
'
})
...
@@ -36,7 +38,7 @@ class PhoneNumberStep extends React.Component {
...
@@ -36,7 +38,7 @@ class PhoneNumberStep extends React.Component {
}
}
return
this
.
props
.
onNextStep
(
formData
);
return
this
.
props
.
onNextStep
(
formData
);
}
}
render
()
{
render
()
{
return
(
return
(
<
Slide
className=
"registration-step phone-step"
>
<
Slide
className=
"registration-step phone-step"
>
<
h2
>
<
h2
>
...
...
src/components/registration/steps.jsx
View file @
b0390f36
...
@@ -1578,6 +1578,8 @@ RegistrationError.propTypes = {
...
@@ -1578,6 +1578,8 @@ RegistrationError.propTypes = {
const
IntlRegistrationError
=
injectIntl
(
RegistrationError
);
const
IntlRegistrationError
=
injectIntl
(
RegistrationError
);
module
.
exports
.
DEFAULT_COUNTRY
=
DEFAULT_COUNTRY
;
module
.
exports
.
NextStepButton
=
NextStepButton
;
module
.
exports
.
UsernameStep
=
IntlUsernameStep
;
module
.
exports
.
UsernameStep
=
IntlUsernameStep
;
module
.
exports
.
ChoosePasswordStep
=
IntlChoosePasswordStep
;
module
.
exports
.
ChoosePasswordStep
=
IntlChoosePasswordStep
;
module
.
exports
.
DemographicsStep
=
IntlDemographicsStep
;
module
.
exports
.
DemographicsStep
=
IntlDemographicsStep
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment