Skip to content

Commit

Permalink
Update FioCreateHandleModal
Browse files Browse the repository at this point in the history
- Use ButtonsViewUi4
- Change green word highlight location
  • Loading branch information
Jon-edge committed Jan 3, 2024
1 parent a355b07 commit 863d91f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions src/components/modals/FioCreateHandleModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { parseMarkedText } from '../../util/parseMarkedText'
import { styled } from '../hoc/styled'
import { cacheStyles, Theme, useTheme } from '../services/ThemeContext'
import { EdgeText } from '../themed/EdgeText'
import { MainButton } from '../themed/MainButton'
import { ThemedModal } from '../themed/ThemedModal'
import { ButtonsViewUi4 } from '../ui4/ButtonsViewUi4'

interface Props {
bridge: AirshipBridge<boolean>
Expand Down Expand Up @@ -41,7 +41,9 @@ export const FioCreateHandleModal = (props: Props) => {
<ThemedModal bridge={bridge} closeButton={false} onCancel={handleCancel}>
<View style={styles.container}>
<FastImage source={{ uri: getFioNewHandleImage(theme) }} style={styles.icon} />
<GetFioHandleTitle>{parseMarkedText(lstrings.fio_free_web3_handle_title_m)}</GetFioHandleTitle>
<GetFioHandleTitle numberOfLines={1} adjustsFontSizeToFit>
{parseMarkedText(lstrings.fio_free_web3_handle_title_m)}
</GetFioHandleTitle>
<EdgeText style={styles.message} numberOfLines={8} disableFontScaling>
{lstrings.fio_free_web3_handle_message}
</EdgeText>
Expand All @@ -51,8 +53,11 @@ export const FioCreateHandleModal = (props: Props) => {
{lstrings.fio_free_handle_please_wait}
</EdgeText>
) : null}
<MainButton type="primary" label={lstrings.get_started_button} onPress={handleConfirm} marginRem={[1, 1, 0.5, 1]} />
<MainButton type="escape" label={lstrings.not_now_button} onPress={handleCancel} marginRem={[0.5, 1, 0.5, 1]} />
<ButtonsViewUi4
primary={{ label: lstrings.get_started_button, onPress: handleConfirm }}
secondary={{ label: lstrings.not_now_button, onPress: handleCancel }}
layout="column"
/>
</ThemedModal>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ const strings = {
fio_domain_to_transfer: 'Domain to Transfer',
fio_domain_transferred: 'Successfully transferred',
fio_free_handle_complete: 'Successfully created your FIO handle',
fio_free_web3_handle_title_m: 'Claim Your *Web3* Handle',
fio_free_web3_handle_title_m: 'Claim Your Web3 *Handle*',
fio_free_handle_title: 'Get a FIO Handle',
fio_free_web3_handle_message: 'Give your account a universal Web3 handle powered by FIO to simplify sending and receiving transactions.',
fio_free_handle_please_wait: 'Please wait for wallet creation to complete...',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/strings/enUS.json
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@
"fio_domain_to_transfer": "Domain to Transfer",
"fio_domain_transferred": "Successfully transferred",
"fio_free_handle_complete": "Successfully created your FIO handle",
"fio_free_web3_handle_title_m": "Claim Your *Web3* Handle",
"fio_free_web3_handle_title_m": "Claim Your Web3 *Handle*",
"fio_free_handle_title": "Get a FIO Handle",
"fio_free_web3_handle_message": "Give your account a universal Web3 handle powered by FIO to simplify sending and receiving transactions.",
"fio_free_handle_please_wait": "Please wait for wallet creation to complete...",
Expand Down

0 comments on commit 863d91f

Please sign in to comment.