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
0564bb3f
Commit
0564bb3f
authored
Dec 15, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix logo and stats nav
parent
d6cc7dfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
useNavItems.tsx
lib/hooks/useNavItems.tsx
+1
-1
NetworkLogo.tsx
ui/snippets/networkMenu/NetworkLogo.tsx
+2
-2
No files found.
lib/hooks/useNavItems.tsx
View file @
0564bb3f
...
@@ -29,7 +29,7 @@ export default function useNavItems() {
...
@@ -29,7 +29,7 @@ export default function useNavItems() {
{
text
:
'
Tokens
'
,
url
:
link
(
'
tokens
'
),
icon
:
tokensIcon
,
isActive
:
currentRoute
===
'
tokens
'
,
isNewUi
:
false
},
{
text
:
'
Tokens
'
,
url
:
link
(
'
tokens
'
),
icon
:
tokensIcon
,
isActive
:
currentRoute
===
'
tokens
'
,
isNewUi
:
false
},
isMarketplaceFilled
?
isMarketplaceFilled
?
{
text
:
'
Apps
'
,
url
:
link
(
'
apps
'
),
icon
:
appsIcon
,
isActive
:
currentRoute
===
'
apps
'
,
isNewUi
:
true
}
:
null
,
{
text
:
'
Apps
'
,
url
:
link
(
'
apps
'
),
icon
:
appsIcon
,
isActive
:
currentRoute
===
'
apps
'
,
isNewUi
:
true
}
:
null
,
{
text
:
'
Charts & stats
'
,
url
:
link
(
'
stats
'
),
icon
:
statsIcon
,
isActive
:
currentRoute
===
'
stats
'
,
isNewUi
:
tru
e
},
{
text
:
'
Charts & stats
'
,
url
:
link
(
'
stats
'
),
icon
:
statsIcon
,
isActive
:
currentRoute
===
'
stats
'
,
isNewUi
:
fals
e
},
// there should be custom site sections like Stats, Faucet, More, etc but never an 'other'
// there should be custom site sections like Stats, Faucet, More, etc but never an 'other'
// examples https://explorer-edgenet.polygon.technology/ and https://explorer.celo.org/
// examples https://explorer-edgenet.polygon.technology/ and https://explorer.celo.org/
// at this stage custom menu items is under development, we will implement it later
// at this stage custom menu items is under development, we will implement it later
...
...
ui/snippets/networkMenu/NetworkLogo.tsx
View file @
0564bb3f
...
@@ -65,7 +65,7 @@ const NetworkLogo = ({ isCollapsed, onClick }: Props) => {
...
@@ -65,7 +65,7 @@ const NetworkLogo = ({ isCollapsed, onClick }: Props) => {
src=
{
logo
}
src=
{
logo
}
display=
{
{
base
:
'
block
'
,
lg
:
isCollapsed
===
false
?
'
block
'
:
'
none
'
,
xl
:
isCollapsed
?
'
none
'
:
'
block
'
}
}
display=
{
{
base
:
'
block
'
,
lg
:
isCollapsed
===
false
?
'
block
'
:
'
none
'
,
xl
:
isCollapsed
?
'
none
'
:
'
block
'
}
}
alt=
{
`${ appConfig.network.name } network logo`
}
alt=
{
`${ appConfig.network.name } network logo`
}
fallback=
{
isLogoError
||
!
logo
?
fallback
Small
Logo
:
undefined
}
fallback=
{
isLogoError
||
!
logo
?
fallbackLogo
:
undefined
}
onError=
{
handleLogoError
}
onError=
{
handleLogoError
}
/>
/>
{
/* small logo */
}
{
/* small logo */
}
...
@@ -75,7 +75,7 @@ const NetworkLogo = ({ isCollapsed, onClick }: Props) => {
...
@@ -75,7 +75,7 @@ const NetworkLogo = ({ isCollapsed, onClick }: Props) => {
src=
{
smallLogo
}
src=
{
smallLogo
}
display=
{
{
base
:
'
none
'
,
lg
:
isCollapsed
===
false
?
'
none
'
:
'
block
'
,
xl
:
isCollapsed
?
'
block
'
:
'
none
'
}
}
display=
{
{
base
:
'
none
'
,
lg
:
isCollapsed
===
false
?
'
none
'
:
'
block
'
,
xl
:
isCollapsed
?
'
block
'
:
'
none
'
}
}
alt=
{
`${ appConfig.network.name } network logo`
}
alt=
{
`${ appConfig.network.name } network logo`
}
fallback=
{
isSmallLogoError
||
!
smallLogo
?
fallbackLogo
:
undefined
}
fallback=
{
isSmallLogoError
||
!
smallLogo
?
fallback
Small
Logo
:
undefined
}
onError=
{
handleSmallLogoError
}
onError=
{
handleSmallLogoError
}
/>
/>
</>
</>
...
...
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