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
54eb25f7
Commit
54eb25f7
authored
Nov 18, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 5
parent
7e0a630c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
LatestTxsNotice.tsx
ui/home/LatestTxsNotice.tsx
+4
-2
Page.tsx
ui/shared/Page/Page.tsx
+2
-2
No files found.
ui/home/LatestTxsNotice.tsx
View file @
54eb25f7
import
{
Alert
,
Spinner
,
Text
,
Link
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Alert
,
Spinner
,
Text
,
Link
,
useColorModeValue
,
useTheme
}
from
'
@chakra-ui/react
'
;
import
{
transparentize
}
from
'
@chakra-ui/theme-tools
'
;
import
React
from
'
react
'
;
import
useNewTxsSocket
from
'
lib/hooks/useNewTxsSocket
'
;
...
...
@@ -33,13 +34,14 @@ const LatestTxsNotice = ({ className }: Props) => {
);
}
const
theme
=
useTheme
();
return
(
<
Alert
className=
{
className
}
status=
"warning"
p=
{
4
}
fontWeight=
{
400
}
bgColor=
{
useColorModeValue
(
'
orange.50
'
,
'
rgba(251, 211, 141, 0.16)
'
)
}
bgColor=
{
useColorModeValue
(
'
orange.50
'
,
transparentize
(
'
orange.200
'
,
0.16
)(
theme
)
)
}
borderBottomRadius=
{
0
}
>
{
content
}
...
...
ui/shared/Page/Page.tsx
View file @
54eb25f7
...
...
@@ -39,9 +39,9 @@ const Page = ({
const
renderErrorScreen
=
React
.
useCallback
(()
=>
{
return
wrapChildren
?
<
PageContent
><
AppError
statusCode=
{
500
}
mt=
"50px"
/></
PageContent
>
:
<
PageContent
hasSearch=
{
hasSearch
}
><
AppError
statusCode=
{
500
}
mt=
"50px"
/></
PageContent
>
:
<
AppError
statusCode=
{
500
}
/>;
},
[
wrapChildren
]);
},
[
wrapChildren
,
hasSearch
]);
const
renderedChildren
=
wrapChildren
?
(
<
PageContent
hasSearch=
{
hasSearch
}
>
{
children
}
</
PageContent
>
...
...
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