Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FIO handle modal #4674

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions src/components/modals/FioCreateHandleModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import FastImage from 'react-native-fast-image'

import { useHandler } from '../../hooks/useHandler'
import { lstrings } from '../../locales/strings'
import { getFioNewHandleImage } from '../../util/CdnUris'
import { getUi4ImageUri } from '../../util/CdnUris'
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 @@ -40,8 +40,10 @@ export const FioCreateHandleModal = (props: Props) => {
return (
<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>
<FastImage source={{ uri: getUi4ImageUri(theme, 'fio/newHandle') }} style={styles.icon} />
<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 @@ -1011,7 +1011,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 @@ -907,7 +907,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
4 changes: 0 additions & 4 deletions src/util/CdnUris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import { removeHexPrefix } from './utils'
/**
* New user FIO handle signup flow
*/
export const getFioNewHandleImage = (theme: Theme) => {
return getThemedIconUri(theme, 'FIO/fioNewHandle')
}

export const getFioCustomizeHandleImage = (theme: Theme) => {
return getThemedIconUri(theme, 'FIO/fioCustomizeHandle')
}
Expand Down
Loading