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
3cee0bcd
Commit
3cee0bcd
authored
Dec 15, 2023
by
tom
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of github.com:blockscout/frontend
parents
17f6484b
660d90fd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
12 deletions
+3
-12
SearchBar.pw.tsx
ui/snippets/searchBar/SearchBar.pw.tsx
+1
-4
SearchBar.tsx
ui/snippets/searchBar/SearchBar.tsx
+0
-6
SearchBar.pw.tsx_dark-color-mode_search-by-name-homepage-dark-mode-1.png
...x_dark-color-mode_search-by-name-homepage-dark-mode-1.png
+0
-0
TopBarStats.tsx
ui/snippets/topBar/TopBarStats.tsx
+2
-2
No files found.
ui/snippets/searchBar/SearchBar.pw.tsx
View file @
3cee0bcd
import
{
LightMode
}
from
'
@chakra-ui/react
'
;
import
{
test
as
base
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
React
from
'
react
'
;
...
...
@@ -93,9 +92,7 @@ test('search by name homepage +@dark-mode', async({ mount, page }) => {
await
mount
(
<
TestApp
>
<
LightMode
>
<
SearchBar
isHomepage
/>
</
LightMode
>
</
TestApp
>,
);
await
page
.
getByPlaceholder
(
/search/i
).
type
(
'
o
'
);
...
...
ui/snippets/searchBar/SearchBar.tsx
View file @
3cee0bcd
...
...
@@ -132,12 +132,6 @@ const SearchBar = ({ isHomepage }: Props) => {
<
PopoverBody
p=
{
0
}
color=
"chakra-body-text"
sx=
{
isHomepage
?
{
mark
:
{
bgColor
:
'
green.100
'
},
'
*::-webkit-scrollbar-thumb
'
:
{
backgroundColor
:
'
blackAlpha.300
'
},
}
:
{}
}
>
<
Box
maxH=
"50vh"
...
...
ui/snippets/searchBar/__screenshots__/SearchBar.pw.tsx_dark-color-mode_search-by-name-homepage-dark-mode-1.png
View replaced file @
17f6484b
View file @
3cee0bcd
40.9 KB
|
W:
|
H:
41.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/snippets/topBar/TopBarStats.tsx
View file @
3cee0bcd
...
...
@@ -30,8 +30,8 @@ const TopBarStats = () => {
<
span
>
$
{
Number
(
data
.
coin_price
).
toLocaleString
(
undefined
,
{
minimumFractionDigits
:
2
,
maximumFractionDigits
:
6
})
}
</
span
>
</
Skeleton
>
)
}
{
data
?.
coin_price
&&
data
.
gas_prices
&&
<
TextSeparator
color=
"divider"
/>
}
{
data
?.
gas_prices
&&
(
{
data
?.
coin_price
&&
config
.
UI
.
homepage
.
showGasTracker
&&
<
TextSeparator
color=
"divider"
/>
}
{
data
?.
gas_prices
&&
config
.
UI
.
homepage
.
showGasTracker
&&
(
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
<
span
>
Gas:
{
data
.
gas_prices
.
average
}
Gwei
</
span
>
</
Skeleton
>
...
...
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