Skip to content

Commit

Permalink
Change evm to ethereum
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jul 11, 2024
1 parent 4b2bed9 commit f1ff643
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/components/EvmAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function EvmAddress({ evmAddress, ...props }: EvmAddressProps) {
<Card {...props} className={cx('flex justify-between', props.className)}>
<CopyTextInline
text={truncateAddress(evmAddress)}
tooltip='Copy my EVM address'
tooltip='Copy my Ethereum address'
tooltipPlacement='top'
textToCopy={evmAddress}
textClassName='font-mono'
Expand Down
4 changes: 2 additions & 2 deletions src/components/auth/LoginModal/ConnectEvmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default function ConnectEvmModal(props: ModalFunctionalityProps) {
<Modal
{...props}
withCloseButton
title='Connect Your EVM to Get Rewards'
description='Only users with a connected EVM will be able to receive and manage their rewards on the platform. It also allows you to use features such as donations and NFTs, display your identity, and much more.'
title='Connect Your Ethereum address to Get Rewards'
description='Only users with a connected Ethereum address will be able to receive and manage their rewards on the platform. It also allows you to use features such as donations and NFTs, display your identity, and much more.'
>
<div className='flex flex-col gap-8'>
<Image src={EvmConnectionImage} alt='' className='w-full' />
Expand Down
2 changes: 1 addition & 1 deletion src/components/auth/LoginModal/LoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function LoginModal({
desc: 'We have created an account linked to your X for you. You can now use Epic!',
},
'evm-address-link': {
title: '🔑 Connect EVM',
title: '🔑 Connect Ethereum address',
desc: 'Create an on-chain proof to link your Epic account.',
withBackButton: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const ConnectWalletContent = ({
className='pt-0'
menus={[
{
text: 'EVM',
text: 'Ethereum',
icon: EthIcon,
onClick: () => {
sendEvent('start_link_evm_address')
Expand Down
2 changes: 1 addition & 1 deletion src/components/auth/ProfileModal/ProfileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default function ProfileModal({
withBackButton: true,
},
'add-evm-provider': {
title: '🔑 Connect EVM',
title: '🔑 Connect Ethereum address',
desc: 'Create an on-chain proof to link your Epic account.',
withBackButton: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export default function LinkedIdentitiesContent() {

const externalProviders: ProviderData[] = [
{
name: 'EVM',
title: 'EVM Address for Rewards',
name: 'Ethereum Address',
title: 'Ethereum Address for Rewards',
points: 0,
icon: SiEthereum,
provider: IdentityProvider.Evm,
Expand Down Expand Up @@ -170,7 +170,7 @@ function EvmConnectButton() {
reset()
},
})
useToastError(error, 'Failed to link EVM address')
useToastError(error, 'Failed to link Ethereum address')

const hasTriedSigning = useRef(false)
const signAndLinkEvmAddress = async (evmAddress: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/auth/common/evm/CommonEvmModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const CommonEvmAddressLinked = () => {
onClick={() => {
const twitterUrl = twitterShareUrl(
getCurrentUrlOrigin(),
`I just linked my #EVM wallet to Epic 🥳!`,
`I just linked my #Ethereum address to Epic 🥳!`,
{ tags: ['Ethereum', 'Epic', 'Base', 'Meme2Earn'] }
)
openNewWindow(twitterUrl)
Expand Down
2 changes: 1 addition & 1 deletion src/components/auth/common/evm/CustomConnectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type CustomConnectButtonProps = ButtonProps & {
export const CustomConnectButton = ({
className,
onSuccessConnect,
label = 'Connect EVM Wallet',
label = 'Connect Ethereum Address',
withWalletActionImage = true,
secondLabel,
isLoading,
Expand Down
6 changes: 3 additions & 3 deletions src/components/modals/LinkEvmAddressModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function LinkEvmAddressModal(
return (
<Modal
{...props}
title={props.title || 'Your EVM address for rewards'}
title={props.title || 'Your Ethereum address for rewards'}
description={
props.description ??
'We will send your token rewards to this address if you win this contest.'
Expand All @@ -59,12 +59,12 @@ export default function LinkEvmAddressModal(
<Input
error={evmAddressError}
value={evmAddress}
placeholder='Your EVM address'
placeholder='Your Ethereum address'
onChange={(e) => {
const address = e.target.value
setEvmAddress(address)
if (!isAddress(address)) {
setEvmAddressError('Invalid EVM Address')
setEvmAddressError('Invalid Ethereum Address')
} else {
setEvmAddressError('')
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/points/PointsWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ const UserStatsSection = ({
<LinkEvmAddressModal
isOpen={openEvmLinkModal}
closeModal={() => setOpenEvmLinkModal(false)}
title='Edit your EVM address for rewards'
title='Edit your Ethereum address for rewards'
description='We will send your token rewards to this address if you win in contest.'
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/telegram/AirdropPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function AddEvmProviderModal(props: ModalFunctionalityProps) {
return (
<Modal
{...props}
title='🔑 Connect EVM'
title='🔑 Connect Ethereum address'
description='Create an on-chain proof to link your Epic account.'
withCloseButton
>
Expand Down
1 change: 0 additions & 1 deletion src/server/datahub-queue/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export async function updatePostData(input: UpdatePostOptimisticInput) {
return res.updatePostOptimistic.callId
}

// TODO: change this if the new mutation is created
const APPROVE_USER_MUTATION = gql`
mutation ApproveUser($input: UpdatePostOptimisticInput!) {
updatePostOptimistic(updatePostOptimisticInput: $input) {
Expand Down

0 comments on commit f1ff643

Please sign in to comment.