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
60d5cef6
Unverified
Commit
60d5cef6
authored
Jun 10, 2021
by
Yuta Sugimura
Committed by
GitHub
Jun 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: untranslated parts (#1837)
parent
ad2833a3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
index.tsx
src/pages/AddLiquidity/index.tsx
+1
-1
PoolPriceBar.tsx
src/pages/AddLiquidityV2/PoolPriceBar.tsx
+8
-3
V3.tsx
src/pages/RemoveLiquidity/V3.tsx
+1
-1
hooks.ts
src/state/burn/v3/hooks.ts
+3
-2
No files found.
src/pages/AddLiquidity/index.tsx
View file @
60d5cef6
...
@@ -754,7 +754,7 @@ export default function AddLiquidity({
...
@@ -754,7 +754,7 @@ export default function AddLiquidity({
}
}
error=
{
!
isValid
&&
!!
parsedAmounts
[
Field
.
CURRENCY_A
]
&&
!!
parsedAmounts
[
Field
.
CURRENCY_B
]
}
error=
{
!
isValid
&&
!!
parsedAmounts
[
Field
.
CURRENCY_A
]
&&
!!
parsedAmounts
[
Field
.
CURRENCY_B
]
}
>
>
<
Text
fontWeight=
{
500
}
>
{
errorMessage
?
errorMessage
:
'
Add
'
}
</
Text
>
<
Text
fontWeight=
{
500
}
>
{
errorMessage
?
errorMessage
:
<
Trans
>
Add
</
Trans
>
}
</
Text
>
</
ButtonError
>
</
ButtonError
>
</
AutoColumn
>
</
AutoColumn
>
)
}
)
}
...
...
src/pages/AddLiquidityV2/PoolPriceBar.tsx
View file @
60d5cef6
...
@@ -7,6 +7,7 @@ import { AutoRow } from '../../components/Row'
...
@@ -7,6 +7,7 @@ import { AutoRow } from '../../components/Row'
import
{
ONE_BIPS
}
from
'
../../constants/misc
'
import
{
ONE_BIPS
}
from
'
../../constants/misc
'
import
{
Field
}
from
'
../../state/mint/actions
'
import
{
Field
}
from
'
../../state/mint/actions
'
import
{
TYPE
}
from
'
../../theme
'
import
{
TYPE
}
from
'
../../theme
'
import
{
Trans
}
from
'
@lingui/macro
'
export
function
PoolPriceBar
({
export
function
PoolPriceBar
({
currencies
,
currencies
,
...
@@ -26,13 +27,17 @@ export function PoolPriceBar({
...
@@ -26,13 +27,17 @@ export function PoolPriceBar({
<
AutoColumn
justify=
"center"
>
<
AutoColumn
justify=
"center"
>
<
TYPE
.
black
>
{
price
?.
toSignificant
(
6
)
??
'
-
'
}
</
TYPE
.
black
>
<
TYPE
.
black
>
{
price
?.
toSignificant
(
6
)
??
'
-
'
}
</
TYPE
.
black
>
<
Text
fontWeight=
{
500
}
fontSize=
{
14
}
color=
{
theme
.
text2
}
pt=
{
1
}
>
<
Text
fontWeight=
{
500
}
fontSize=
{
14
}
color=
{
theme
.
text2
}
pt=
{
1
}
>
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
per
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
<
Trans
>
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
per
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
</
Trans
>
</
Text
>
</
Text
>
</
AutoColumn
>
</
AutoColumn
>
<
AutoColumn
justify=
"center"
>
<
AutoColumn
justify=
"center"
>
<
TYPE
.
black
>
{
price
?.
invert
()?.
toSignificant
(
6
)
??
'
-
'
}
</
TYPE
.
black
>
<
TYPE
.
black
>
{
price
?.
invert
()?.
toSignificant
(
6
)
??
'
-
'
}
</
TYPE
.
black
>
<
Text
fontWeight=
{
500
}
fontSize=
{
14
}
color=
{
theme
.
text2
}
pt=
{
1
}
>
<
Text
fontWeight=
{
500
}
fontSize=
{
14
}
color=
{
theme
.
text2
}
pt=
{
1
}
>
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
per
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
<
Trans
>
{
currencies
[
Field
.
CURRENCY_A
]?.
symbol
}
per
{
currencies
[
Field
.
CURRENCY_B
]?.
symbol
}
</
Trans
>
</
Text
>
</
Text
>
</
AutoColumn
>
</
AutoColumn
>
<
AutoColumn
justify=
"center"
>
<
AutoColumn
justify=
"center"
>
...
@@ -43,7 +48,7 @@ export function PoolPriceBar({
...
@@ -43,7 +48,7 @@ export function PoolPriceBar({
%
%
</
TYPE
.
black
>
</
TYPE
.
black
>
<
Text
fontWeight=
{
500
}
fontSize=
{
14
}
color=
{
theme
.
text2
}
pt=
{
1
}
>
<
Text
fontWeight=
{
500
}
fontSize=
{
14
}
color=
{
theme
.
text2
}
pt=
{
1
}
>
Share of Pool
<
Trans
>
Share of Pool
</
Trans
>
</
Text
>
</
Text
>
</
AutoColumn
>
</
AutoColumn
>
</
AutoRow
>
</
AutoRow
>
...
...
src/pages/RemoveLiquidity/V3.tsx
View file @
60d5cef6
...
@@ -361,7 +361,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
...
@@ -361,7 +361,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
</
RowBetween
>
</
RowBetween
>
<
RowBetween
>
<
RowBetween
>
<
Text
fontSize=
{
16
}
fontWeight=
{
500
}
>
<
Text
fontSize=
{
16
}
fontWeight=
{
500
}
>
{
feeValue1
?.
currency
?.
symbol
}
Fees Earned:
<
Trans
>
{
feeValue1
?.
currency
?.
symbol
}
Fees Earned:
</
Trans
>
</
Text
>
</
Text
>
<
RowFixed
>
<
RowFixed
>
<
Text
fontSize=
{
16
}
fontWeight=
{
500
}
marginLeft=
{
'
6px
'
}
>
<
Text
fontSize=
{
16
}
fontWeight=
{
500
}
marginLeft=
{
'
6px
'
}
>
...
...
src/state/burn/v3/hooks.ts
View file @
60d5cef6
...
@@ -11,6 +11,7 @@ import { AppState } from '../../index'
...
@@ -11,6 +11,7 @@ import { AppState } from '../../index'
import
{
selectPercent
}
from
'
./actions
'
import
{
selectPercent
}
from
'
./actions
'
import
{
unwrappedToken
}
from
'
utils/unwrappedToken
'
import
{
unwrappedToken
}
from
'
utils/unwrappedToken
'
import
{
useAppDispatch
,
useAppSelector
}
from
'
state/hooks
'
import
{
useAppDispatch
,
useAppSelector
}
from
'
state/hooks
'
import
{
t
}
from
'
@lingui/macro
'
export
function
useBurnV3State
():
AppState
[
'
burnV3
'
]
{
export
function
useBurnV3State
():
AppState
[
'
burnV3
'
]
{
return
useAppSelector
((
state
)
=>
state
.
burnV3
)
return
useAppSelector
((
state
)
=>
state
.
burnV3
)
...
@@ -75,10 +76,10 @@ export function useDerivedV3BurnInfo(
...
@@ -75,10 +76,10 @@ export function useDerivedV3BurnInfo(
let
error
:
string
|
undefined
let
error
:
string
|
undefined
if
(
!
account
)
{
if
(
!
account
)
{
error
=
'
Connect Wallet
'
error
=
t
`Connect Wallet`
}
}
if
(
percent
===
0
)
{
if
(
percent
===
0
)
{
error
=
error
??
'
Enter a percent
'
error
=
error
??
t
`Enter a percent`
}
}
return
{
return
{
position
:
positionSDK
,
position
:
positionSDK
,
...
...
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