Skip to content

Commit c207176

Browse files
committed
feat: add RuxPhoneNumber component for phone number input in ReturnUserExperience
1 parent 311b02d commit c207176

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

src/ReturnUserExperience/ReturnUserExperience.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import RuxLogosHeader from 'src/ReturnUserExperience/RuxLogosHeader'
55
import RuxTitle from 'src/ReturnUserExperience/RuxTitle'
66
import RuxInfo from 'src/ReturnUserExperience/RuxInfo'
77
import { RuxPhoneNumber } from 'src/ReturnUserExperience/RuxPhoneNumber'
8+
import RuxOtp from 'src/ReturnUserExperience/RuxOtp'
89

910
import { __ } from 'src/utilities/Intl'
1011

@@ -34,6 +35,10 @@ export const ReturnUserExperience = () => {
3435
userEnteredPhone={userEnteredPhone}
3536
/>
3637
)}
38+
39+
{view === RUXViews.OTP && <RuxOtp />}
40+
41+
{view === RUXViews.LIST && <div>{__('List of connections goes here.')}</div>}
3742
</div>
3843
)
3944
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from 'react'
2+
import Stack from '@mui/material/Stack'
3+
import { Text } from '@mxenabled/mxui'
4+
import Button from '@mui/material/Button'
5+
6+
import { __ } from 'src/utilities/Intl'
7+
import styles from './returnUserExperience.module.css'
8+
9+
export const RuxPhoneNumber = () => {
10+
return (
11+
<>
12+
{/* OTP Style Input */}
13+
OTP Style Input
14+
<Stack className={styles.buttonContainer} spacing="8px">
15+
<Button>{__('Get code')}</Button>
16+
<Text variant="subtitle2">Resend code in (10 seconds)</Text>
17+
</Stack>
18+
</>
19+
)
20+
}
21+
22+
export default RuxPhoneNumber

0 commit comments

Comments
 (0)