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
8ab8cf0a
Commit
8ab8cf0a
authored
Jun 10, 2022
by
Natalia Stus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
watchlist fixes
parent
d88b5d72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
CopyToClipboard.tsx
components/CopyToClipboard/CopyToClipboard.tsx
+2
-2
Tag.tsx
components/Tag/Tag.tsx
+0
-15
No files found.
components/CopyToClipboard/CopyToClipboard.tsx
View file @
8ab8cf0a
...
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect } from 'react';
...
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect } from 'react';
import
{
Icon
,
useClipboard
,
useToast
}
from
'
@chakra-ui/react
'
;
import
{
Icon
,
useClipboard
,
useToast
}
from
'
@chakra-ui/react
'
;
import
{
FaCopy
}
from
'
react-icons/fa
'
;
import
{
FaCopy
}
from
'
react-icons/fa
'
;
const
WatchListAddressItem
=
({
text
}:
{
text
:
string
})
=>
{
const
CopyToClipboard
=
({
text
}:
{
text
:
string
})
=>
{
const
{
hasCopied
,
onCopy
}
=
useClipboard
(
text
);
const
{
hasCopied
,
onCopy
}
=
useClipboard
(
text
);
const
toast
=
useToast
();
const
toast
=
useToast
();
...
@@ -21,4 +21,4 @@ const WatchListAddressItem = ({ text }: {text: string}) => {
...
@@ -21,4 +21,4 @@ const WatchListAddressItem = ({ text }: {text: string}) => {
return
<
Icon
as=
{
FaCopy
}
w=
"15px"
h=
"15px"
color=
"blue.500"
cursor=
"pointer"
onClick=
{
copyToClipboardCallback
}
/>;
return
<
Icon
as=
{
FaCopy
}
w=
"15px"
h=
"15px"
color=
"blue.500"
cursor=
"pointer"
onClick=
{
copyToClipboardCallback
}
/>;
}
}
export
default
WatchListAddressItem
;
export
default
CopyToClipboard
;
components/Tag/Tag.tsx
deleted
100644 → 0
View file @
d88b5d72
import
React
from
'
react
'
;
import
{
Box
}
from
'
@chakra-ui/react
'
type
Props
=
{
children
:
React
.
ReactNode
};
const
Tag
:
React
.
FC
<
Props
>
=
(
props
)
=>
{
return
(
<
Box
backgroundColor=
"gray.200"
color=
"gray.600"
borderRadius=
"4px"
fontSize=
"xs"
padding=
"2px 8px"
width=
"fit-content"
>
{
props
.
children
}
</
Box
>
)
}
export
default
Tag
;
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