11import React from 'react'
2+ import { useSelector } from 'react-redux'
3+
24import InputAdornment from '@mui/material/InputAdornment'
35import Stack from '@mui/material/Stack'
46import Button from '@mui/material/Button'
57import { Text } from '@mxenabled/mxui'
68import { Link } from '@mui/material'
79
8- import { TextField } from 'src/privacy/input '
10+ import { RootState } from 'src/redux/Store '
911import { __ } from 'src/utilities/Intl'
12+ import { TextField } from 'src/privacy/input'
1013import styles from './returnUserExperience.module.css'
1114
1215export 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 : (
0 commit comments