Commit 1c27f5c1 authored by Max Alekseenko's avatar Max Alekseenko

update texts and links

parent 805ad3de
...@@ -6,6 +6,7 @@ import type { UserInfo } from 'types/api/account'; ...@@ -6,6 +6,7 @@ import type { UserInfo } from 'types/api/account';
import config from 'configs/app'; import config from 'configs/app';
import AddressEntity from 'ui/shared/entities/address/AddressEntity'; import AddressEntity from 'ui/shared/entities/address/AddressEntity';
import LinkExternal from 'ui/shared/links/LinkExternal';
interface Props { interface Props {
profileQuery: UseQueryResult<UserInfo, unknown>; profileQuery: UseQueryResult<UserInfo, unknown>;
...@@ -19,7 +20,15 @@ const MyProfileWallet = ({ profileQuery, onAddWallet }: Props) => { ...@@ -19,7 +20,15 @@ const MyProfileWallet = ({ profileQuery, onAddWallet }: Props) => {
<section> <section>
<Heading as="h2" size="sm" mb={ 3 }>My linked wallet</Heading> <Heading as="h2" size="sm" mb={ 3 }>My linked wallet</Heading>
<Text mb={ 3 } > <Text mb={ 3 } >
This wallet address is used for login { config.features.rewards.isEnabled ? 'and participation in the merit program' : '' } This wallet address is used for login{ ' ' }
{ config.features.rewards.isEnabled && (
<>
and participation in the Merits Program.
<LinkExternal href="https://docs.blockscout.com/using-blockscout/merits" ml={ 1 }>
Learn more
</LinkExternal>
</>
) }
</Text> </Text>
{ profileQuery.data?.address_hash ? ( { profileQuery.data?.address_hash ? (
<Box px={ 3 } py="18px" bgColor={ bgColor } borderRadius="base"> <Box px={ 3 } py="18px" bgColor={ bgColor } borderRadius="base">
......
...@@ -59,7 +59,7 @@ const RewardsDashboard = () => { ...@@ -59,7 +59,7 @@ const RewardsDashboard = () => {
<> <>
Total number of merits earned from all activities.{ ' ' } Total number of merits earned from all activities.{ ' ' }
<LinkExternal href="https://docs.blockscout.com/using-blockscout/merits"> <LinkExternal href="https://docs.blockscout.com/using-blockscout/merits">
More info on merits More info on Merits
</LinkExternal> </LinkExternal>
</> </>
) } ) }
......
...@@ -89,7 +89,7 @@ const LoginStepContent = ({ goNext, closeModal }: Props) => { ...@@ -89,7 +89,7 @@ const LoginStepContent = ({ goNext, closeModal }: Props) => {
/> />
<Box mb={ 6 }> <Box mb={ 6 }>
Merits are awarded for a variety of different Blockscout activities. Connect a wallet to get started. Merits are awarded for a variety of different Blockscout activities. Connect a wallet to get started.
<LinkExternal href="https://docs.blockscout.com/using-blockscout/my-account/merits" ml={ 1 } fontWeight="500"> <LinkExternal href="https://docs.blockscout.com/using-blockscout/merits" ml={ 1 } fontWeight="500">
More about Blockscout Merits More about Blockscout Merits
</LinkExternal> </LinkExternal>
</Box> </Box>
......
...@@ -92,7 +92,7 @@ const UserProfileContent = ({ data, onClose, onLogin, onAddEmail, onAddAddress } ...@@ -92,7 +92,7 @@ const UserProfileContent = ({ data, onClose, onLogin, onAddEmail, onAddAddress }
<Flex p={ 2 } borderColor="divider" borderBottomWidth="1px"> <Flex p={ 2 } borderColor="divider" borderBottomWidth="1px">
<Box>Address</Box> <Box>Address</Box>
<Hint <Hint
label={ `This wallet address is linked to your Blockscout account. It can be used to login ${ config.features.rewards.isEnabled ? 'and is used for merit program participation' : '' }` } // eslint-disable-line max-len label={ `This wallet address is linked to your Blockscout account. It can be used to login ${ config.features.rewards.isEnabled ? 'and is used for Merits Program participation' : '' }` } // eslint-disable-line max-len
boxSize={ 4 } boxSize={ 4 }
ml={ 1 } ml={ 1 }
mr="auto" mr="auto"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment