Commit 0f8e6b1d authored by Max Alekseenko's avatar Max Alekseenko

hide part of text without rewards feature

parent 91a61989
...@@ -4,6 +4,7 @@ import React from 'react'; ...@@ -4,6 +4,7 @@ import React from 'react';
import type { UserInfo } from 'types/api/account'; import type { UserInfo } from 'types/api/account';
import config from 'configs/app';
import AddressEntity from 'ui/shared/entities/address/AddressEntity'; import AddressEntity from 'ui/shared/entities/address/AddressEntity';
interface Props { interface Props {
...@@ -18,7 +19,7 @@ const MyProfileWallet = ({ profileQuery, onAddWallet }: Props) => { ...@@ -18,7 +19,7 @@ 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 can be used to login and is used for merit program This wallet address can be used to login { config.features.rewards.isEnabled ? 'and is used for merit program' : '' }
</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">
......
...@@ -84,7 +84,7 @@ const UserProfileContent = ({ data, onClose, onLogin, onAddEmail, onAddAddress } ...@@ -84,7 +84,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 and is used for merit program participation" 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
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