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
Hide 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,11 +15,13 @@ const Slide = require('../../components/slide/slide.jsx');
const
StepNavigation
=
require
(
'
../../components/stepnavigation/stepnavigation.jsx
'
);
const
Tooltip
=
require
(
'
../../components/tooltip/tooltip.jsx
'
);
const
{
DEFAULT_COUNTRY
,
NextStepButton
}
=
require
(
'
./steps.jsx
'
);
require
(
'
./steps.scss
'
);
/*
* This step is separate from the other steps because it includes a large library
* for phone number validation.
* for phone number validation.
*/
class
PhoneNumberStep
extends
React
.
Component
{
constructor
(
props
)
{
...
...
@@ -28,7 +30,7 @@ class PhoneNumberStep extends React.Component {
'
handleValidSubmit
'
]);
}
handleValidSubmit
(
formData
,
reset
,
invalidate
)
{
handleValidSubmit
(
formData
,
reset
,
invalidate
)
{
if
(
!
formData
.
phone
||
formData
.
phone
.
national_number
===
'
+
'
)
{
return
invalidate
({
phone
:
this
.
props
.
intl
.
formatMessage
({
id
:
'
form.validationRequired
'
})
...
...
@@ -36,7 +38,7 @@ class PhoneNumberStep extends React.Component {
}
return
this
.
props
.
onNextStep
(
formData
);
}
render
()
{
render
()
{
return
(
<
Slide
className=
"registration-step phone-step"
>
<
h2
>
...
...
@@ -104,4 +106,4 @@ PhoneNumberStep.defaultProps = {
const
IntlPhoneNumberStep
=
injectIntl
(
PhoneNumberStep
);
module
.
exports
=
IntlPhoneNumberStep
;
\ No newline at end of file
module
.
exports
=
IntlPhoneNumberStep
;
src/components/registration/steps.jsx
View file @
b0390f36
...
...
@@ -1578,6 +1578,8 @@ RegistrationError.propTypes = {
const
IntlRegistrationError
=
injectIntl
(
RegistrationError
);
module
.
exports
.
DEFAULT_COUNTRY
=
DEFAULT_COUNTRY
;
module
.
exports
.
NextStepButton
=
NextStepButton
;
module
.
exports
.
UsernameStep
=
IntlUsernameStep
;
module
.
exports
.
ChoosePasswordStep
=
IntlChoosePasswordStep
;
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