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
945f0a04
Commit
945f0a04
authored
Nov 23, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix font style in delete modals
parent
cab7a366
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
DeleteApiKeyModal.tsx
ui/apiKey/DeleteApiKeyModal.tsx
+1
-1
DeleteCustomAbiModal.tsx
ui/customAbi/DeleteCustomAbiModal.tsx
+1
-1
DeletePrivateTagModal.tsx
ui/privateTags/DeletePrivateTagModal.tsx
+1
-1
DeletePublicTagModal.tsx
ui/publicTags/DeletePublicTagModal.tsx
+4
-4
DeleteAddressModal.tsx
ui/watchlist/DeleteAddressModal.tsx
+1
-1
No files found.
ui/apiKey/DeleteApiKeyModal.tsx
View file @
945f0a04
...
@@ -30,7 +30,7 @@ const DeleteAddressModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
...
@@ -30,7 +30,7 @@ const DeleteAddressModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
const
renderText
=
useCallback
(()
=>
{
const
renderText
=
useCallback
(()
=>
{
return
(
return
(
<
Text
>
API key for
<
Text
fontWeight=
"
6
00"
as=
"span"
>
{
` "${ data.name || 'name' }" `
}
</
Text
>
will be deleted
</
Text
>
<
Text
>
API key for
<
Text
fontWeight=
"
7
00"
as=
"span"
>
{
` "${ data.name || 'name' }" `
}
</
Text
>
will be deleted
</
Text
>
);
);
},
[
data
.
name
]);
},
[
data
.
name
]);
...
...
ui/customAbi/DeleteCustomAbiModal.tsx
View file @
945f0a04
...
@@ -29,7 +29,7 @@ const DeleteCustomAbiModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
...
@@ -29,7 +29,7 @@ const DeleteCustomAbiModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
const
renderText
=
useCallback
(()
=>
{
const
renderText
=
useCallback
(()
=>
{
return
(
return
(
<
Text
>
Custom ABI for
<
Text
fontWeight=
"
6
00"
as=
"span"
>
{
` "${ data.name || 'name' }" `
}
</
Text
>
will be deleted
</
Text
>
<
Text
>
Custom ABI for
<
Text
fontWeight=
"
7
00"
as=
"span"
>
{
` "${ data.name || 'name' }" `
}
</
Text
>
will be deleted
</
Text
>
);
);
},
[
data
.
name
]);
},
[
data
.
name
]);
...
...
ui/privateTags/DeletePrivateTagModal.tsx
View file @
945f0a04
...
@@ -40,7 +40,7 @@ const DeletePrivateTagModal: React.FC<Props> = ({ isOpen, onClose, data, type })
...
@@ -40,7 +40,7 @@ const DeletePrivateTagModal: React.FC<Props> = ({ isOpen, onClose, data, type })
const
renderText
=
useCallback
(()
=>
{
const
renderText
=
useCallback
(()
=>
{
return
(
return
(
<
Text
>
Tag
<
Text
fontWeight=
"
6
00"
as=
"span"
>
{
` "${ tag || 'tag' }" `
}
</
Text
>
will be deleted
</
Text
>
<
Text
>
Tag
<
Text
fontWeight=
"
7
00"
as=
"span"
>
{
` "${ tag || 'tag' }" `
}
</
Text
>
will be deleted
</
Text
>
);
);
},
[
tag
]);
},
[
tag
]);
...
...
ui/publicTags/DeletePublicTagModal.tsx
View file @
945f0a04
...
@@ -48,7 +48,7 @@ const DeletePublicTagModal: React.FC<Props> = ({ isOpen, onClose, data, onDelete
...
@@ -48,7 +48,7 @@ const DeletePublicTagModal: React.FC<Props> = ({ isOpen, onClose, data, onDelete
text
=
(
text
=
(
<>
<>
<
Text
display=
"inline"
as=
"span"
>
Public tag
</
Text
>
<
Text
display=
"inline"
as=
"span"
>
Public tag
</
Text
>
<
Text
fontWeight=
"
6
00"
whiteSpace=
"pre"
as=
"span"
>
{
` "${ tags[0] }" `
}
</
Text
>
<
Text
fontWeight=
"
7
00"
whiteSpace=
"pre"
as=
"span"
>
{
` "${ tags[0] }" `
}
</
Text
>
<
Text
as=
"span"
>
will be removed.
</
Text
>
<
Text
as=
"span"
>
will be removed.
</
Text
>
</>
</>
);
);
...
@@ -57,15 +57,15 @@ const DeletePublicTagModal: React.FC<Props> = ({ isOpen, onClose, data, onDelete
...
@@ -57,15 +57,15 @@ const DeletePublicTagModal: React.FC<Props> = ({ isOpen, onClose, data, onDelete
const
tagsText
:
Array
<
JSX
.
Element
|
string
>
=
[];
const
tagsText
:
Array
<
JSX
.
Element
|
string
>
=
[];
tags
.
forEach
((
tag
,
index
)
=>
{
tags
.
forEach
((
tag
,
index
)
=>
{
if
(
index
<
tags
.
length
-
2
)
{
if
(
index
<
tags
.
length
-
2
)
{
tagsText
.
push
(<
Text
fontWeight=
"
6
00"
whiteSpace=
"pre"
as=
"span"
>
{
` "${ tag }"`
}
</
Text
>);
tagsText
.
push
(<
Text
fontWeight=
"
7
00"
whiteSpace=
"pre"
as=
"span"
>
{
` "${ tag }"`
}
</
Text
>);
tagsText
.
push
(
'
,
'
);
tagsText
.
push
(
'
,
'
);
}
}
if
(
index
===
tags
.
length
-
2
)
{
if
(
index
===
tags
.
length
-
2
)
{
tagsText
.
push
(<
Text
fontWeight=
"
6
00"
whiteSpace=
"pre"
as=
"span"
>
{
` "${ tag }" `
}
</
Text
>);
tagsText
.
push
(<
Text
fontWeight=
"
7
00"
whiteSpace=
"pre"
as=
"span"
>
{
` "${ tag }" `
}
</
Text
>);
tagsText
.
push
(
'
and
'
);
tagsText
.
push
(
'
and
'
);
}
}
if
(
index
===
tags
.
length
-
1
)
{
if
(
index
===
tags
.
length
-
1
)
{
tagsText
.
push
(<
Text
fontWeight=
"
6
00"
whiteSpace=
"pre"
as=
"span"
>
{
` "${ tag }" `
}
</
Text
>);
tagsText
.
push
(<
Text
fontWeight=
"
7
00"
whiteSpace=
"pre"
as=
"span"
>
{
` "${ tag }" `
}
</
Text
>);
}
}
});
});
text
=
(
text
=
(
...
...
ui/watchlist/DeleteAddressModal.tsx
View file @
945f0a04
...
@@ -35,7 +35,7 @@ const DeleteAddressModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
...
@@ -35,7 +35,7 @@ const DeleteAddressModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
const renderModalContent = useCallback(() => {
const renderModalContent = useCallback(() => {
const addressString = isMobile ? [ address.slice(0, 4), address.slice(-4) ].join('...') : address;
const addressString = isMobile ? [ address.slice(0, 4), address.slice(-4) ].join('...') : address;
return (
return (
<Text>Address <Text fontWeight="
6
00" as="span"> { addressString || 'address' }</Text> will be deleted</Text>
<Text>Address <Text fontWeight="
7
00" as="span"> { addressString || 'address' }</Text> will be deleted</Text>
);
);
}, [ address, isMobile ]);
}, [ address, isMobile ]);
...
...
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