Skip to content
Closed
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
15 changes: 12 additions & 3 deletions src/components/Dialogs/HelpDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,17 @@ const ReadTime = () => (
<>
<h2 className="title">
<TextIcon icon={<IconReadTimeTotal16 size="md" />} weight="md">
<FormattedMessage defaultMessage="Accumulated Read Time" description="src/components/Dialogs/HelpDialog/index.tsx" />
<FormattedMessage
defaultMessage="Accumulated Read Time"
description="src/components/Dialogs/HelpDialog/index.tsx"
/>
</TextIcon>
</h2>
<p className="description">
<FormattedMessage defaultMessage="Accumulated read time indicates the total time length that registered users read." description="src/components/Dialogs/HelpDialog/index.tsx" />
<FormattedMessage
defaultMessage="Accumulated read time indicates the total time length that registered users read."
description="src/components/Dialogs/HelpDialog/index.tsx"
/>
</p>
<style jsx>{styles}</style>
</>
Expand All @@ -41,7 +47,10 @@ const ReadCount = () => (
</TextIcon>
</h2>
<p className="description">
<FormattedMessage defaultMessage="Read counts indicates how many registered users read." description="src/components/Dialogs/HelpDialog/index.tsx" />
<FormattedMessage
defaultMessage="Read counts indicates how many registered users read."
description="src/components/Dialogs/HelpDialog/index.tsx"
/>
</p>
<style jsx>{styles}</style>
</>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import _get from 'lodash/get'
import _pickBy from 'lodash/pickBy'
import { useContext, useEffect, useRef, useState } from 'react'
import { useAccount } from 'wagmi'
import { polygon } from 'wagmi/chains'

import {
PAYMENT_CURRENCY as CURRENCY,
PAYMENT_MAXIMUM_PAYTO_AMOUNT,
} from '~/common/enums'
import {
featureSupportedChains,
formatAmount,
numRound,
validateCurrency,
Expand Down Expand Up @@ -110,7 +110,7 @@ const SetAmount: React.FC<FormProps> = ({
viewer.info.ethAddress?.toLowerCase() === address?.toLowerCase()

// TODO: support multiple networks
const targetNetork = featureSupportedChains.curation[0]
const targetNetork = polygon
const { isUnsupportedNetwork, switchToTargetNetwork, isSwitchingNetwork } =
useTargetNetwork(targetNetork)

Expand Down