Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
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
vicotor
frontend
Commits
18887dc0
Commit
18887dc0
authored
Sep 27, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename Token to TokenSnippet
parent
0726ca30
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
TokenSnippet.tsx
ui/shared/TokenSnippet.tsx
+2
-2
TokenTransfer.tsx
ui/tx/TokenTransfer.tsx
+2
-2
TxDetails.tsx
ui/tx/TxDetails.tsx
+2
-2
No files found.
ui/shared/Token.tsx
→
ui/shared/Token
Snippet
.tsx
View file @
18887dc0
...
@@ -27,7 +27,7 @@ interface Props {
...
@@ -27,7 +27,7 @@ interface Props {
className
?:
string
;
className
?:
string
;
}
}
const
Token
=
({
symbol
,
className
}:
Props
)
=>
{
const
Token
Snippet
=
({
symbol
,
className
}:
Props
)
=>
{
const
token
=
TOKENS
[
symbol
as
keyof
typeof
TOKENS
];
const
token
=
TOKENS
[
symbol
as
keyof
typeof
TOKENS
];
const
link
=
useLink
();
const
link
=
useLink
();
...
@@ -48,4 +48,4 @@ const Token = ({ symbol, className }: Props) => {
...
@@ -48,4 +48,4 @@ const Token = ({ symbol, className }: Props) => {
);
);
};
};
export
default
chakra
(
Token
);
export
default
chakra
(
Token
Snippet
);
ui/tx/TokenTransfer.tsx
View file @
18887dc0
...
@@ -4,7 +4,7 @@ import React from 'react';
...
@@ -4,7 +4,7 @@ import React from 'react';
import
rightArrowIcon
from
'
icons/arrows/east.svg
'
;
import
rightArrowIcon
from
'
icons/arrows/east.svg
'
;
import
{
space
}
from
'
lib/html-entities
'
;
import
{
space
}
from
'
lib/html-entities
'
;
import
AddressLink
from
'
ui/shared/address/AddressLink
'
;
import
AddressLink
from
'
ui/shared/address/AddressLink
'
;
import
Token
from
'
ui/shared/Token
'
;
import
Token
Snippet
from
'
ui/shared/TokenSnippet
'
;
interface
Props
{
interface
Props
{
from
:
string
;
from
:
string
;
...
@@ -26,7 +26,7 @@ const TokenTransfer = ({ from, to, amount, usd, token }: Props) => {
...
@@ -26,7 +26,7 @@ const TokenTransfer = ({ from, to, amount, usd, token }: Props) => {
<
Text
fontWeight=
{
600
}
as=
"span"
>
{
amount
}
</
Text
>
{
space
}
<
Text
fontWeight=
{
600
}
as=
"span"
>
{
amount
}
</
Text
>
{
space
}
<
Text
fontWeight=
{
400
}
variant=
"secondary"
as=
"span"
>
($
{
usd
.
toFixed
(
2
)
}
)
</
Text
>
<
Text
fontWeight=
{
400
}
variant=
"secondary"
as=
"span"
>
($
{
usd
.
toFixed
(
2
)
}
)
</
Text
>
</
Text
>
</
Text
>
<
Token
symbol=
{
token
}
/>
<
Token
Snippet
symbol=
{
token
}
/>
</
Flex
>
</
Flex
>
);
);
};
};
...
...
ui/tx/TxDetails.tsx
View file @
18887dc0
...
@@ -17,7 +17,7 @@ import HashStringShortenDynamic from 'ui/shared/HashStringShortenDynamic';
...
@@ -17,7 +17,7 @@ import HashStringShortenDynamic from 'ui/shared/HashStringShortenDynamic';
import
PrevNext
from
'
ui/shared/PrevNext
'
;
import
PrevNext
from
'
ui/shared/PrevNext
'
;
import
RawInputData
from
'
ui/shared/RawInputData
'
;
import
RawInputData
from
'
ui/shared/RawInputData
'
;
import
TextSeparator
from
'
ui/shared/TextSeparator
'
;
import
TextSeparator
from
'
ui/shared/TextSeparator
'
;
import
Token
from
'
ui/shared/Token
'
;
import
Token
Snippet
from
'
ui/shared/TokenSnippet
'
;
import
Utilization
from
'
ui/shared/Utilization
'
;
import
Utilization
from
'
ui/shared/Utilization
'
;
import
TokenTransfer
from
'
ui/tx/TokenTransfer
'
;
import
TokenTransfer
from
'
ui/tx/TokenTransfer
'
;
import
TxDecodedInputData
from
'
ui/tx/TxDecodedInputData
'
;
import
TxDecodedInputData
from
'
ui/tx/TxDecodedInputData
'
;
...
@@ -108,7 +108,7 @@ const TxDetails = () => {
...
@@ -108,7 +108,7 @@ const TxDetails = () => {
<
Icon
as=
{
errorIcon
}
boxSize=
{
4
}
ml=
{
2
}
color=
"red.500"
cursor=
"pointer"
/>
<
Icon
as=
{
errorIcon
}
boxSize=
{
4
}
ml=
{
2
}
color=
"red.500"
cursor=
"pointer"
/>
</
chakra
.
span
>
</
chakra
.
span
>
</
Tooltip
>
</
Tooltip
>
<
Token
symbol=
"USDT"
ml=
{
3
}
/>
<
Token
Snippet
symbol=
"USDT"
ml=
{
3
}
/>
</
DetailsInfoItem
>
</
DetailsInfoItem
>
<
DetailsInfoItem
<
DetailsInfoItem
title=
"Token transferred"
title=
"Token transferred"
...
...
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