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
660d90fd
Unverified
Commit
660d90fd
authored
Dec 15, 2023
by
tom goriunov
Committed by
GitHub
Dec 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix search bar suggest highlight in dark mode and gas tracker in top bar (#1420)
fix SearchBar test
parent
2d729325
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 @
660d90fd
import
{
LightMode
}
from
'
@chakra-ui/react
'
;
import
{
test
as
base
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
{
test
as
base
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
...
@@ -93,9 +92,7 @@ test('search by name homepage +@dark-mode', async({ mount, page }) => {
...
@@ -93,9 +92,7 @@ test('search by name homepage +@dark-mode', async({ mount, page }) => {
await
mount
(
await
mount
(
<
TestApp
>
<
TestApp
>
<
LightMode
>
<
SearchBar
isHomepage
/>
<
SearchBar
isHomepage
/>
</
LightMode
>
</
TestApp
>,
</
TestApp
>,
);
);
await
page
.
getByPlaceholder
(
/search/i
).
type
(
'
o
'
);
await
page
.
getByPlaceholder
(
/search/i
).
type
(
'
o
'
);
...
...
ui/snippets/searchBar/SearchBar.tsx
View file @
660d90fd
...
@@ -132,12 +132,6 @@ const SearchBar = ({ isHomepage }: Props) => {
...
@@ -132,12 +132,6 @@ const SearchBar = ({ isHomepage }: Props) => {
<
PopoverBody
<
PopoverBody
p=
{
0
}
p=
{
0
}
color=
"chakra-body-text"
color=
"chakra-body-text"
sx=
{
isHomepage
?
{
mark
:
{
bgColor
:
'
green.100
'
},
'
*::-webkit-scrollbar-thumb
'
:
{
backgroundColor
:
'
blackAlpha.300
'
},
}
:
{}
}
>
>
<
Box
<
Box
maxH=
"50vh"
maxH=
"50vh"
...
...
ui/snippets/searchBar/__screenshots__/SearchBar.pw.tsx_dark-color-mode_search-by-name-homepage-dark-mode-1.png
View replaced file @
2d729325
View file @
660d90fd
40.9 KB
|
W:
|
H:
41.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/snippets/topBar/TopBarStats.tsx
View file @
660d90fd
...
@@ -30,8 +30,8 @@ const TopBarStats = () => {
...
@@ -30,8 +30,8 @@ const TopBarStats = () => {
<
span
>
$
{
Number
(
data
.
coin_price
).
toLocaleString
(
undefined
,
{
minimumFractionDigits
:
2
,
maximumFractionDigits
:
6
})
}
</
span
>
<
span
>
$
{
Number
(
data
.
coin_price
).
toLocaleString
(
undefined
,
{
minimumFractionDigits
:
2
,
maximumFractionDigits
:
6
})
}
</
span
>
</
Skeleton
>
</
Skeleton
>
)
}
)
}
{
data
?.
coin_price
&&
data
.
gas_prices
&&
<
TextSeparator
color=
"divider"
/>
}
{
data
?.
coin_price
&&
config
.
UI
.
homepage
.
showGasTracker
&&
<
TextSeparator
color=
"divider"
/>
}
{
data
?.
gas_prices
&&
(
{
data
?.
gas_prices
&&
config
.
UI
.
homepage
.
showGasTracker
&&
(
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
<
span
>
Gas:
{
data
.
gas_prices
.
average
}
Gwei
</
span
>
<
span
>
Gas:
{
data
.
gas_prices
.
average
}
Gwei
</
span
>
</
Skeleton
>
</
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