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
3d043760
Commit
3d043760
authored
Nov 28, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of
https://github.com/blockscout/frontend
parents
d945c0fc
532688cb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
6 deletions
+13
-6
AppModal.tsx
ui/apps/AppModal.tsx
+4
-1
LatestBlocks.tsx
ui/home/LatestBlocks.tsx
+1
-1
LatestTxs.tsx
ui/home/LatestTxs.tsx
+1
-1
AccountPageDescription.tsx
ui/shared/AccountPageDescription.tsx
+2
-1
DeleteModal.tsx
ui/shared/DeleteModal.tsx
+4
-1
TxAdditionalInfo.tsx
ui/txs/TxAdditionalInfo.tsx
+1
-1
No files found.
ui/apps/AppModal.tsx
View file @
3d043760
...
@@ -13,6 +13,7 @@ import tgIcon from 'icons/social/telega.svg';
...
@@ -13,6 +13,7 @@ import tgIcon from 'icons/social/telega.svg';
import
twIcon
from
'
icons/social/tweet.svg
'
;
import
twIcon
from
'
icons/social/tweet.svg
'
;
import
starFilledIcon
from
'
icons/star_filled.svg
'
;
import
starFilledIcon
from
'
icons/star_filled.svg
'
;
import
starOutlineIcon
from
'
icons/star_outline.svg
'
;
import
starOutlineIcon
from
'
icons/star_outline.svg
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
{
nbsp
}
from
'
lib/html-entities
'
;
import
{
nbsp
}
from
'
lib/html-entities
'
;
import
notEmpty
from
'
lib/notEmpty
'
;
import
notEmpty
from
'
lib/notEmpty
'
;
...
@@ -65,11 +66,13 @@ const AppModal = ({
...
@@ -65,11 +66,13 @@ const AppModal = ({
onFavoriteClick
(
id
,
isFavorite
);
onFavoriteClick
(
id
,
isFavorite
);
},
[
onFavoriteClick
,
id
,
isFavorite
]);
},
[
onFavoriteClick
,
id
,
isFavorite
]);
const
isMobile
=
useIsMobile
();
return
(
return
(
<
Modal
<
Modal
isOpen=
{
Boolean
(
id
)
}
isOpen=
{
Boolean
(
id
)
}
onClose=
{
onClose
}
onClose=
{
onClose
}
size=
{
{
base
:
'
full
'
,
lg
:
'
md
'
}
}
size=
{
isMobile
?
'
full
'
:
'
md
'
}
isCentered
isCentered
>
>
<
ModalOverlay
/>
<
ModalOverlay
/>
...
...
ui/home/LatestBlocks.tsx
View file @
3d043760
...
@@ -101,7 +101,7 @@ const LatestBlocks = () => {
...
@@ -101,7 +101,7 @@ const LatestBlocks = () => {
return
(
return
(
<>
<>
<
Heading
as=
"h4"
fontSize=
"18px"
mb=
{
{
base
:
3
,
lg
:
8
}
}
>
Latest Blocks
</
Heading
>
<
Heading
as=
"h4"
size=
"sm"
mb=
{
{
base
:
4
,
lg
:
7
}
}
>
Latest Blocks
</
Heading
>
{
content
}
{
content
}
</>
</>
);
);
...
...
ui/home/LatestTxs.tsx
View file @
3d043760
...
@@ -54,7 +54,7 @@ const LatestTransactions = () => {
...
@@ -54,7 +54,7 @@ const LatestTransactions = () => {
return
(
return
(
<>
<>
<
Heading
as=
"h4"
fontSize=
"18px"
mb=
{
{
base
:
3
,
lg
:
8
}
}
>
Latest transactions
</
Heading
>
<
Heading
as=
"h4"
size=
"sm"
mb=
{
4
}
>
Latest transactions
</
Heading
>
{
content
}
{
content
}
</>
</>
);
);
...
...
ui/shared/AccountPageDescription.tsx
View file @
3d043760
...
@@ -26,7 +26,8 @@ const AccountPageDescription = ({ children }: {children: React.ReactNode}) => {
...
@@ -26,7 +26,8 @@ const AccountPageDescription = ({ children }: {children: React.ReactNode}) => {
return
function
cleanup
()
{
return
function
cleanup
()
{
window
.
removeEventListener
(
'
resize
'
,
resizeHandler
);
window
.
removeEventListener
(
'
resize
'
,
resizeHandler
);
};
};
},
[
calculateCut
]);
// eslint-disable-next-line react-hooks/exhaustive-deps
},
[
]);
const
expand
=
useCallback
(()
=>
{
const
expand
=
useCallback
(()
=>
{
setExpanded
(
true
);
setExpanded
(
true
);
...
...
ui/shared/DeleteModal.tsx
View file @
3d043760
...
@@ -12,6 +12,7 @@ import {
...
@@ -12,6 +12,7 @@ import {
import
{
useMutation
}
from
'
@tanstack/react-query
'
;
import
{
useMutation
}
from
'
@tanstack/react-query
'
;
import
React
,
{
useCallback
,
useState
}
from
'
react
'
;
import
React
,
{
useCallback
,
useState
}
from
'
react
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
FormSubmitAlert
from
'
ui/shared/FormSubmitAlert
'
;
import
FormSubmitAlert
from
'
ui/shared/FormSubmitAlert
'
;
type
Props
=
{
type
Props
=
{
...
@@ -53,8 +54,10 @@ const DeleteModal: React.FC<Props> = ({
...
@@ -53,8 +54,10 @@ const DeleteModal: React.FC<Props> = ({
mutation
.
mutate
();
mutation
.
mutate
();
},
[
setAlertVisible
,
mutation
]);
},
[
setAlertVisible
,
mutation
]);
const
isMobile
=
useIsMobile
();
return
(
return
(
<
Modal
isOpen=
{
isOpen
}
onClose=
{
onModalClose
}
size=
{
{
base
:
'
full
'
,
lg
:
'
md
'
}
}
>
<
Modal
isOpen=
{
isOpen
}
onClose=
{
onModalClose
}
size=
{
isMobile
?
'
full
'
:
'
md
'
}
>
<
ModalOverlay
/>
<
ModalOverlay
/>
<
ModalContent
>
<
ModalContent
>
<
ModalHeader
fontWeight=
"500"
textStyle=
"h3"
>
{
title
}
</
ModalHeader
>
<
ModalHeader
fontWeight=
"500"
textStyle=
"h3"
>
{
title
}
</
ModalHeader
>
...
...
ui/txs/TxAdditionalInfo.tsx
View file @
3d043760
...
@@ -28,7 +28,7 @@ const TxAdditionalInfo = ({ tx }: { tx: Transaction }) => {
...
@@ -28,7 +28,7 @@ const TxAdditionalInfo = ({ tx }: { tx: Transaction }) => {
return
(
return
(
<>
<>
<
Heading
as=
"h4"
fontSize=
"18px
"
mb=
{
6
}
>
Additional info
</
Heading
>
<
Heading
as=
"h4"
size=
"sm
"
mb=
{
6
}
>
Additional info
</
Heading
>
<
Box
{
...
sectionProps
}
mb=
{
4
}
>
<
Box
{
...
sectionProps
}
mb=
{
4
}
>
<
Text
{
...
sectionTitleProps
}
>
Transaction fee
</
Text
>
<
Text
{
...
sectionTitleProps
}
>
Transaction fee
</
Text
>
<
Flex
>
<
Flex
>
...
...
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