Commit 3840daf3 authored by Moody Salem's avatar Moody Salem

few more missed spots

parent 1104bdce
......@@ -326,7 +326,7 @@ export function ManageLists({
<SearchInput
type="text"
id="list-add-input"
placeholder="https:// or ipfs:// or ENS name"
placeholder={t`https:// or ipfs:// or ENS name`}
value={listUrlInput}
onChange={handleInput}
/>
......@@ -345,7 +345,9 @@ export function ManageLists({
{tempList.logoURI && <ListLogo logoURI={tempList.logoURI} size="40px" />}
<AutoColumn gap="4px" style={{ marginLeft: '20px' }}>
<TYPE.body fontWeight={600}>{tempList.name}</TYPE.body>
<TYPE.main fontSize={'12px'}>{tempList.tokens.length} tokens</TYPE.main>
<TYPE.main fontSize={'12px'}>
<Trans>{tempList.tokens.length} tokens</Trans>
</TYPE.main>
</AutoColumn>
</RowFixed>
{isImported ? (
......
......@@ -130,8 +130,7 @@ export default function ManageTokens({
<PaddedColumn gap="lg" style={{ overflow: 'auto', marginBottom: '10px' }}>
<RowBetween>
<TYPE.main fontWeight={600}>
{/* TODO(judo): handle plural */}
{userAddedTokens?.length} Custom {userAddedTokens.length === 1 ? 'Token' : 'Tokens'}
<Trans>{userAddedTokens?.length} Custom Tokens</Trans>
</TYPE.main>
{userAddedTokens.length > 0 && (
<ButtonText onClick={handleRemoveAll}>
......
import { Trans } from '@lingui/macro'
import React from 'react'
import styled from 'styled-components/macro'
import { TYPE } from '../../theme'
......@@ -42,13 +43,13 @@ export default function ListToggle({ id, isActive, bgColor, toggle }: ToggleProp
<Wrapper id={id} isActive={isActive} onClick={toggle}>
{isActive && (
<StatusText fontWeight="600" margin="0 6px" isActive={true}>
ON
<Trans>ON</Trans>
</StatusText>
)}
<ToggleElement isActive={isActive} bgColor={bgColor} />
{!isActive && (
<StatusText fontWeight="600" margin="0 6px" isActive={false}>
OFF
<Trans>OFF</Trans>
</StatusText>
)}
</Wrapper>
......
import { Trans } from '@lingui/macro'
import React from 'react'
import styled from 'styled-components/macro'
......@@ -44,10 +45,10 @@ export default function Toggle({ id, isActive, toggle }: ToggleProps) {
return (
<StyledToggle id={id} isActive={isActive} onClick={toggle}>
<ToggleElement isActive={isActive} isOnSwitch={true}>
On
<Trans>On</Trans>
</ToggleElement>
<ToggleElement isActive={!isActive} isOnSwitch={false}>
Off
<Trans>Off</Trans>
</ToggleElement>
</StyledToggle>
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment