Skip to content

Commit 572f72b

Browse files
committed
Fix linting
1 parent 1f93940 commit 572f72b

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/components/@molecules/TransactionDialogManager/DisplayItems.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ const AddressValue = ({ value }: { value: string }) => {
117117
return (
118118
<ValueWithAvatarContainer>
119119
<InnerValueWrapper>
120-
{primaryDisplayName && <ValueTypography fontVariant="bodyBold" color="text">{primaryDisplayName}</ValueTypography>}
120+
{primaryDisplayName && (
121+
<ValueTypography fontVariant="bodyBold" color="text">
122+
{primaryDisplayName}
123+
</ValueTypography>
124+
)}
121125
{AddressTypography}
122126
</InnerValueWrapper>
123127
<AvatarWrapper>

src/components/pages/profile/NameSnippet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { Button, Typography } from '@ensdomains/thorin'
77

88
import { CacheableComponent } from '@app/components/@atoms/CacheableComponent'
99
import { AddressAvatar, AvatarWithZorb } from '@app/components/AvatarWithZorb'
10-
import { getPrimaryDisplayName } from '@app/hooks/ensjs/public/primaryNameUtils'
1110
import { NFTWithPlaceholder } from '@app/components/NFTWithPlaceholder'
11+
import { getPrimaryDisplayName } from '@app/hooks/ensjs/public/primaryNameUtils'
1212
import { usePrimaryName } from '@app/hooks/ensjs/public/usePrimaryName'
1313
import { useRouterWithHistory } from '@app/hooks/useRouterWithHistory'
1414
import { shortenAddress } from '@app/utils/utils'

src/components/pages/profile/settings/PrimarySection/PrimarySection.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ export const PrimarySection = () => {
147147
const reverseRegistryName = useReverseRegistryName({ address })
148148
const hasPrimaryName = hasValidPrimaryName(primary.data)
149149

150-
const isHeritedName =
151-
hasPrimaryName && !reverseRegistryName.data && reverseRegistryName.isSuccess
150+
const isHeritedName = hasPrimaryName && !reverseRegistryName.data && reverseRegistryName.isSuccess
152151

153152
const { truncatedName, isLoading: basicLoading } = useBasicName({
154153
name: hasPrimaryName ? primary.data?.name : undefined,

src/hooks/pages/profile/[name]/profile/useProfileActions/useProfileActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import type { Button } from '@ensdomains/thorin'
66

77
import { useAbilities } from '@app/hooks/abilities/useAbilities'
88
import { useAccountSafely } from '@app/hooks/account/useAccountSafely'
9+
import { hasValidPrimaryName } from '@app/hooks/ensjs/public/primaryNameUtils'
910
import { useExpiry } from '@app/hooks/ensjs/public/useExpiry'
1011
import { useOwner } from '@app/hooks/ensjs/public/useOwner'
11-
import { hasValidPrimaryName } from '@app/hooks/ensjs/public/primaryNameUtils'
1212
import { usePrimaryName } from '@app/hooks/ensjs/public/usePrimaryName'
1313
import { useWrapperData } from '@app/hooks/ensjs/public/useWrapperData'
1414
import { useGetPrimaryNameTransactionFlowItem } from '@app/hooks/primary/useGetPrimaryNameTransactionFlowItem'

0 commit comments

Comments
 (0)