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
ac770e59
Commit
ac770e59
authored
Oct 30, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix header gap
parent
4791de53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
HeaderDesktop.tsx
ui/snippets/header/HeaderDesktop.tsx
+2
-12
No files found.
ui/snippets/header/HeaderDesktop.tsx
View file @
ac770e59
...
@@ -3,19 +3,15 @@ import React from 'react';
...
@@ -3,19 +3,15 @@ import React from 'react';
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
RewardsButton
from
'
ui/rewards/RewardsButton
'
;
import
RewardsButton
from
'
ui/rewards/RewardsButton
'
;
import
NetworkLogo
from
'
ui/snippets/networkMenu/NetworkLogo
'
;
import
SearchBar
from
'
ui/snippets/searchBar/SearchBar
'
;
import
SearchBar
from
'
ui/snippets/searchBar/SearchBar
'
;
import
UserProfileDesktop
from
'
ui/snippets/user/profile/UserProfileDesktop
'
;
import
UserProfileDesktop
from
'
ui/snippets/user/profile/UserProfileDesktop
'
;
import
UserWalletDesktop
from
'
ui/snippets/user/wallet/UserWalletDesktop
'
;
import
UserWalletDesktop
from
'
ui/snippets/user/wallet/UserWalletDesktop
'
;
import
Burger
from
'
./Burger
'
;
type
Props
=
{
type
Props
=
{
renderSearchBar
?:
()
=>
React
.
ReactNode
;
renderSearchBar
?:
()
=>
React
.
ReactNode
;
isMarketplaceAppPage
?:
boolean
;
}
}
const
HeaderDesktop
=
({
renderSearchBar
,
isMarketplaceAppPage
}:
Props
)
=>
{
const
HeaderDesktop
=
({
renderSearchBar
}:
Props
)
=>
{
const
searchBar
=
renderSearchBar
?
renderSearchBar
()
:
<
SearchBar
/>;
const
searchBar
=
renderSearchBar
?
renderSearchBar
()
:
<
SearchBar
/>;
...
@@ -26,14 +22,8 @@ const HeaderDesktop = ({ renderSearchBar, isMarketplaceAppPage }: Props) => {
...
@@ -26,14 +22,8 @@ const HeaderDesktop = ({ renderSearchBar, isMarketplaceAppPage }: Props) => {
width=
"100%"
width=
"100%"
alignItems=
"center"
alignItems=
"center"
justifyContent=
"center"
justifyContent=
"center"
gap=
{
12
}
gap=
{
6
}
>
>
{
isMarketplaceAppPage
&&
(
<
Box
display=
"flex"
alignItems=
"center"
gap=
{
3
}
>
<
Burger
isMarketplaceAppPage
/>
<
NetworkLogo
isCollapsed
/>
</
Box
>
)
}
<
Box
width=
"100%"
>
<
Box
width=
"100%"
>
{
searchBar
}
{
searchBar
}
</
Box
>
</
Box
>
...
...
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