Skip to content

Commit 36f2d36

Browse files
committed
feat: enhance RuxPhoneNumber and RuxInfo components with improved layout and additional app information
1 parent 9c613a7 commit 36f2d36

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

src/ReturnUserExperience/RuxPhoneNumber.tsx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import React from 'react'
2+
import { useSelector } from 'react-redux'
3+
24
import InputAdornment from '@mui/material/InputAdornment'
35
import Stack from '@mui/material/Stack'
46
import Button from '@mui/material/Button'
57
import { Text } from '@mxenabled/mxui'
68
import { Link } from '@mui/material'
79

8-
import { TextField } from 'src/privacy/input'
10+
import { RootState } from 'src/redux/Store'
911
import { __ } from 'src/utilities/Intl'
12+
import { TextField } from 'src/privacy/input'
1013
import styles from './returnUserExperience.module.css'
1114

1215
export const RuxPhoneNumber = ({
@@ -16,8 +19,29 @@ export const RuxPhoneNumber = ({
1619
userEnteredPhone: string
1720
setUserEnteredPhone: (phone: string) => void
1821
}) => {
22+
const appName = useSelector(
23+
(state: RootState) => state.profiles.client.oauth_app_name || 'This app',
24+
)
25+
1926
return (
2027
<>
28+
<Stack className={styles.titleContainer} spacing="6px">
29+
<Text bold={true} className={styles.centerText} truncate={false} variant="h2">
30+
{__('Connect your accounts')}
31+
</Text>
32+
<Text className={styles.centerText} truncate={false} variant="subtitle1">
33+
{__('%1 uses MX to connect your accounts.', appName)}
34+
<Link
35+
href="https://mx.com/learn-more"
36+
sx={{ color: 'tokens.TextColor.ButtonLink', marginLeft: 0 }}
37+
underline="always"
38+
variant="subtitle1"
39+
>
40+
{__('Learn more about MX.')}
41+
</Link>
42+
</Text>
43+
</Stack>
44+
2145
<TextField
2246
InputProps={{
2347
startAdornment: (

src/ReturnUserExperience/returnUserExperience.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@
7373
padding-top: 16px;
7474
padding-right: 16px;
7575
padding-left: 16px;
76-
}
76+
}

0 commit comments

Comments
 (0)