Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
69183ed8
Unverified
Commit
69183ed8
authored
Jun 26, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: translate claim modal inputs
parent
05e741b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
index.tsx
src/components/AddressInputPanel/index.tsx
+7
-6
ProposalActionDetail.tsx
src/pages/CreateProposal/ProposalActionDetail.tsx
+3
-2
No files found.
src/components/AddressInputPanel/index.tsx
View file @
69183ed8
import
{
useContext
,
useCallback
}
from
'
react
'
import
{
t
,
Trans
}
from
'
@lingui/macro
'
import
{
useContext
,
useCallback
,
ReactNode
}
from
'
react
'
import
styled
,
{
ThemeContext
}
from
'
styled-components
'
import
useENS
from
'
../../hooks/useENS
'
import
{
useActiveWeb3React
}
from
'
../../hooks/web3
'
...
...
@@ -68,14 +69,14 @@ const Input = styled.input<{ error?: boolean }>`
export
default
function
AddressInputPanel
({
id
,
className
=
'
recipient-address-input
'
,
label
=
'
Recipient
'
,
label
,
placeholder
,
value
,
onChange
,
}:
{
id
?:
string
className
?:
string
label
?:
string
label
?:
ReactNode
placeholder
?:
string
// the typed string value
value
:
string
...
...
@@ -105,14 +106,14 @@ export default function AddressInputPanel({
<
AutoColumn
gap=
"md"
>
<
RowBetween
>
<
TYPE
.
black
color=
{
theme
.
text2
}
fontWeight=
{
500
}
fontSize=
{
14
}
>
{
label
}
{
label
??
<
Trans
>
Recipient
</
Trans
>
}
</
TYPE
.
black
>
{
address
&&
chainId
&&
(
<
ExternalLink
href=
{
getExplorerLink
(
chainId
,
name
??
address
,
ExplorerDataType
.
ADDRESS
)
}
style=
{
{
fontSize
:
'
14px
'
}
}
>
(View on Explorer)
<
Trans
>
(View on Explorer)
</
Trans
>
</
ExternalLink
>
)
}
</
RowBetween
>
...
...
@@ -123,7 +124,7 @@ export default function AddressInputPanel({
autoCorrect=
"off"
autoCapitalize=
"off"
spellCheck=
"false"
placeholder=
{
placeholder
??
'
Wallet Address or ENS name
'
}
placeholder=
{
placeholder
??
t
`Wallet Address or ENS name`
}
error=
{
error
}
pattern=
"^(0x[a-fA-F0-9]{40})$"
onChange=
{
handleInput
}
...
...
src/pages/CreateProposal/ProposalActionDetail.tsx
View file @
69183ed8
...
...
@@ -4,6 +4,7 @@ import CurrencyInputPanel from 'components/CurrencyInputPanel'
import
styled
from
'
styled-components
'
import
{
ProposalAction
}
from
'
./ProposalActionSelector
'
import
{
Currency
}
from
'
@uniswap/sdk-core
'
import
{
Trans
}
from
'
@lingui/macro
'
enum
ProposalActionDetailField
{
ADDRESS
,
...
...
@@ -40,7 +41,7 @@ export const ProposalActionDetail = ({
[
ProposalAction
.
TRANSFER_TOKEN
]:
[
{
type
:
ProposalActionDetailField
.
ADDRESS
,
label
:
'
To
'
,
label
:
<
Trans
>
To
</
Trans
>
,
},
{
type
:
ProposalActionDetailField
.
CURRENCY
,
...
...
@@ -49,7 +50,7 @@ export const ProposalActionDetail = ({
[
ProposalAction
.
APPROVE_TOKEN
]:
[
{
type
:
ProposalActionDetailField
.
ADDRESS
,
label
:
'
To
'
,
label
:
<
Trans
>
To
</
Trans
>
,
},
{
type
:
ProposalActionDetailField
.
CURRENCY
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment