From 3840daf3651cb994b8ad39bae28a495a3049755b Mon Sep 17 00:00:00 2001 From: Moody Salem Date: Sun, 30 May 2021 14:15:45 -0500 Subject: [PATCH] few more missed spots --- src/components/SearchModal/ManageLists.tsx | 6 ++++-- src/components/SearchModal/ManageTokens.tsx | 3 +-- src/components/Toggle/ListToggle.tsx | 5 +++-- src/components/Toggle/index.tsx | 5 +++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/SearchModal/ManageLists.tsx b/src/components/SearchModal/ManageLists.tsx index 9f8ace4de3..82e6d48b28 100644 --- a/src/components/SearchModal/ManageLists.tsx +++ b/src/components/SearchModal/ManageLists.tsx @@ -326,7 +326,7 @@ export function ManageLists({ @@ -345,7 +345,9 @@ export function ManageLists({ {tempList.logoURI && } {tempList.name} - {tempList.tokens.length} tokens + + {tempList.tokens.length} tokens + {isImported ? ( diff --git a/src/components/SearchModal/ManageTokens.tsx b/src/components/SearchModal/ManageTokens.tsx index ba226909e8..fd64869656 100644 --- a/src/components/SearchModal/ManageTokens.tsx +++ b/src/components/SearchModal/ManageTokens.tsx @@ -130,8 +130,7 @@ export default function ManageTokens({ - {/* TODO(judo): handle plural */} - {userAddedTokens?.length} Custom {userAddedTokens.length === 1 ? 'Token' : 'Tokens'} + {userAddedTokens?.length} Custom Tokens {userAddedTokens.length > 0 && ( diff --git a/src/components/Toggle/ListToggle.tsx b/src/components/Toggle/ListToggle.tsx index 7cf9ea5f53..26d264d198 100644 --- a/src/components/Toggle/ListToggle.tsx +++ b/src/components/Toggle/ListToggle.tsx @@ -1,3 +1,4 @@ +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 {isActive && ( - ON + ON )} {!isActive && ( - OFF + OFF )} diff --git a/src/components/Toggle/index.tsx b/src/components/Toggle/index.tsx index d9b36b5919..16d3d0ccea 100644 --- a/src/components/Toggle/index.tsx +++ b/src/components/Toggle/index.tsx @@ -1,3 +1,4 @@ +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 ( - On + On - Off + Off )