Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default function ConnectButton({
}}>
{!isLoading ? (
<>
<Logo /> {!isFollowing ? 'Follow Now' : 'Following'}
<Logo /> <Typography variant="button">{!isFollowing ? 'Follow Now' : 'Following'}</Typography>
</>
) : (
<CircularProgress size={30} sx={{ marginLeft: '154px' }} />
Expand Down
10 changes: 7 additions & 3 deletions packages/plugins/CyberConnect/src/SNSAdaptor/FollowTab.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState } from 'react'
import { Typography } from '@mui/material'
import { makeStyles, MaskColorVar } from '@masknet/theme'
import Box from '@mui/material/Box'
import Tab from '@mui/material/Tab'
Expand All @@ -8,6 +9,7 @@ import TabPanel from '@mui/lab/TabPanel'
import Avatar from 'boring-avatars'
import { formatEthereumAddress } from '@masknet/web3-shared-evm'
import type { IFollowIdentity } from '../Worker/apis'

const useStyles = makeStyles()((theme) => ({
tabContext: {
marginTop: '20px',
Expand Down Expand Up @@ -44,10 +46,12 @@ export default function FollowTab({
<Avatar square={false} name={identity.ens || identity.address} size={40} />
</div>
<div className={classes.user}>
<div className={classes.userName}>
<Typography className={classes.userName} component="div">
{identity.ens || formatEthereumAddress(identity.address, 16)}
</div>
<div className={classes.namespace}>From {identity.namespace}</div>
</Typography>
<Typography className={classes.namespace} component="div">
From {identity.namespace}
</Typography>
</div>
</div>
)
Expand Down
10 changes: 7 additions & 3 deletions packages/plugins/CyberConnect/src/SNSAdaptor/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles, MaskColorVar } from '@masknet/theme'
import { PluginCyberConnectRPC } from '../messages'
import { Skeleton } from '@mui/material'
import { Skeleton, Typography } from '@mui/material'
import { formatEthereumAddress } from '@masknet/web3-shared-evm'
import Avatar from 'boring-avatars'
import ConnectButton from './ConnectButton'
Expand Down Expand Up @@ -81,12 +81,16 @@ const Profile = ({ url }: { url: string }) => {
<Avatar name={queryAddress} square size={300} />
)}
</div>
<div className={classes.userName}>{identity?.ens || formatEthereumAddress(queryAddress, 4)}</div>
<Typography className={classes.userName} component="div">
{identity?.ens || formatEthereumAddress(queryAddress, 4)}
</Typography>

{!identity ? (
<Skeleton width={400} height={40} />
) : (
<div className={classes.address}>{identity.address}</div>
<Typography className={classes.address} component="div">
{identity.address}
</Typography>
)}

{!loading ? (
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/CyberConnect/src/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const base: Plugin.Shared.Definition = {
enableRequirement: {
architecture: { app: false, web: true },
networks: { type: 'opt-out', networks: {} },
target: 'beta',
target: 'stable',
web3: {
[NetworkPluginID.PLUGIN_EVM]: {
supportedChainIds: [ChainId.Mainnet, ChainId.BSC, ChainId.Matic, ChainId.Arbitrum, ChainId.xDai],
Expand Down