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
0a2f045f
Commit
0a2f045f
authored
Oct 11, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix reorg badge and issue url
parent
0feaf7cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
+6
-2
useIssueUrl.tsx
lib/hooks/useIssueUrl.tsx
+5
-1
SearchBarSuggestBlock.tsx
...pets/searchBar/SearchBarSuggest/SearchBarSuggestBlock.tsx
+1
-1
SearchBar.pw.tsx_default_scroll-suggest-to-category-1.png
...SearchBar.pw.tsx_default_scroll-suggest-to-category-1.png
+0
-0
SearchBar.pw.tsx_default_search-by-block-number-mobile-1.png
...rchBar.pw.tsx_default_search-by-block-number-mobile-1.png
+0
-0
No files found.
lib/hooks/useIssueUrl.tsx
View file @
0a2f045f
import
{
useRouter
}
from
'
next/router
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
export
default
function
useIssueUrl
(
backendVersion
:
string
|
undefined
)
{
export
default
function
useIssueUrl
(
backendVersion
:
string
|
undefined
)
{
const
[
isLoading
,
setIsLoading
]
=
React
.
useState
(
true
);
const
[
isLoading
,
setIsLoading
]
=
React
.
useState
(
true
);
const
router
=
useRouter
();
React
.
useEffect
(()
=>
{
React
.
useEffect
(()
=>
{
setIsLoading
(
false
);
setIsLoading
(
false
);
...
@@ -23,6 +25,8 @@ export default function useIssueUrl(backendVersion: string | undefined) {
...
@@ -23,6 +25,8 @@ export default function useIssueUrl(backendVersion: string | undefined) {
'
additional-information
'
:
`**User Agent:**
${
window
.
navigator
.
userAgent
}
`
,
'
additional-information
'
:
`**User Agent:**
${
window
.
navigator
.
userAgent
}
`
,
});
});
return
`https://github.com/blockscout/blockscout/issues/new/?
${
searchParams
.
toString
()
}
`
;
return
`https://github.com/blockscout/blockscout/issues/new/?
${
searchParams
.
toString
()
}
`
;
},
[
backendVersion
,
isLoading
]);
// we need to update link whenever page url changes
// eslint-disable-next-line react-hooks/exhaustive-deps
},
[
backendVersion
,
isLoading
,
router
.
asPath
]);
}
}
ui/snippets/searchBar/SearchBarSuggest/SearchBarSuggestBlock.tsx
View file @
0a2f045f
...
@@ -60,7 +60,7 @@ const SearchBarSuggestBlock = ({ data, isMobile, searchTerm }: Props) => {
...
@@ -60,7 +60,7 @@ const SearchBarSuggestBlock = ({ data, isMobile, searchTerm }: Props) => {
{
icon
}
{
icon
}
{
blockNumber
}
{
blockNumber
}
</
Flex
>
</
Flex
>
<
Flex
columnGap=
{
3
}
minW=
{
0
}
>
<
Flex
columnGap=
{
3
}
minW=
{
0
}
alignItems=
"center"
>
{
data
.
block_type
===
'
reorg
'
&&
<
Tag
flexShrink=
{
0
}
>
Reorg
</
Tag
>
}
{
data
.
block_type
===
'
reorg
'
&&
<
Tag
flexShrink=
{
0
}
>
Reorg
</
Tag
>
}
{
hash
}
{
hash
}
</
Flex
>
</
Flex
>
...
...
ui/snippets/searchBar/__screenshots__/SearchBar.pw.tsx_default_scroll-suggest-to-category-1.png
View replaced file @
0feaf7cb
View file @
0a2f045f
51.1 KB
|
W:
|
H:
51.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/snippets/searchBar/__screenshots__/SearchBar.pw.tsx_default_search-by-block-number-mobile-1.png
View replaced file @
0feaf7cb
View file @
0a2f045f
36.1 KB
|
W:
|
H:
36.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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