Skip to content

Commit

Permalink
fix: detail page account render (#10896)
Browse files Browse the repository at this point in the history
  • Loading branch information
beyond009 committed Oct 8, 2023
1 parent 4db53e6 commit d2f8edf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const ContactCard = memo<ContactCardProps>(function ContactCard({
avatar,
publicKey,
nextId,
profiles,
profiles: proofProfiles ? proofProfiles : profiles,
isLocal,
},
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { memo } from 'react'
import { makeStyles } from '@masknet/theme'
import { Box } from '@mui/material'
import { type BindingProof } from '@masknet/shared-base'
import { AccountRender } from '../../AccountRender/index.js'
import { RestorableScroll } from '@masknet/shared'
import type { Profile } from '../../common.js'

const useStyles = makeStyles()((theme) => ({
accounts: {
Expand All @@ -21,7 +21,7 @@ const useStyles = makeStyles()((theme) => ({
}))

interface ConnectedAccountsProps {
profiles: BindingProof[]
profiles: Profile[]
}

export const ConnectedAccounts = memo<ConnectedAccountsProps>(function ConnectedAccounts({ profiles }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import { memo, useCallback } from 'react'
import { Box, Avatar, Typography, Link } from '@mui/material'
import { Icons } from '@masknet/icons'
import { useNavigate } from 'react-router-dom'
import { formatPersonaFingerprint, type BindingProof } from '@masknet/shared-base'
import { formatPersonaFingerprint } from '@masknet/shared-base'
import { useTheme } from '@mui/system'
import { CopyButton, EmptyStatus } from '@masknet/shared'
import { ConnectedAccounts } from './ConnectAccounts/index.js'
import { useI18N } from '../../../../../utils/i18n-next-ui.js'
import type { Profile } from '../common.js'

const useStyles = makeStyles()((theme) => ({
container: {
Expand Down Expand Up @@ -75,7 +76,7 @@ const useStyles = makeStyles()((theme) => ({

export interface FriendsDetailUIProps {
avatar?: string
profiles: BindingProof[]
profiles: Profile[]
nextId: string
publicKey?: string
isLocal?: boolean
Expand Down

0 comments on commit d2f8edf

Please sign in to comment.