Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CryptoMetrics_L02_GRP15
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
L02_GRP15
CryptoMetrics_L02_GRP15
Commits
6ea70ac1
Commit
6ea70ac1
authored
3 years ago
by
Aggarwal Himanshu
Browse files
Options
Downloads
Patches
Plain Diff
Fix sidebar width; Add way to change active item on sidebar
parent
7cf1d879
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7
Merge develop to main
,
!2
Draft: Add Compare Chart Feature
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cryptometrics/components/sidebar/Sidebar.js
+5
-5
5 additions, 5 deletions
src/cryptometrics/components/sidebar/Sidebar.js
src/cryptometrics/pages/index.js
+1
-1
1 addition, 1 deletion
src/cryptometrics/pages/index.js
with
6 additions
and
6 deletions
src/cryptometrics/components/sidebar/Sidebar.js
+
5
−
5
View file @
6ea70ac1
...
...
@@ -4,9 +4,9 @@ import Link from "next/link";
import
classNames
from
"
classnames
"
;
import
{
ChartBarIcon
,
GlobeIcon
}
from
"
@heroicons/react/outline
"
;
function
Sidebar
()
{
function
Sidebar
(
{
active
}
)
{
return
(
<
div
className
=
"
w-64 dark:text-white
"
>
<
div
className
=
"
w-64
min-w-[16rem]
dark:text-white
"
>
{
/* Sidebar Head */
}
<
span
className
=
"
flex justify-center items-center mt-5
"
id
=
"
crypto-logo
"
>
<
Image
...
...
@@ -27,13 +27,13 @@ function Sidebar() {
title
=
"
Home
"
icon
=
{
<
GlobeIcon
className
=
"
w-6 h-6
"
/>
}
to
=
"
/
"
active
=
{
true
}
active
=
{
active
===
"
home
"
}
/
>
<
SidebarItem
title
=
"
Compare
"
icon
=
{
<
ChartBarIcon
className
=
"
w-6 h-6
"
/>
}
to
=
"
/
map
"
active
=
{
false
}
to
=
"
/
compare
"
active
=
{
active
===
"
compare
"
}
/
>
<
/nav
>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
src/cryptometrics/pages/index.js
+
1
−
1
View file @
6ea70ac1
...
...
@@ -47,7 +47,7 @@ export default function Home() {
<
link
rel
=
"
icon
"
href
=
"
/favicon.ico
"
/>
<
/Head
>
<
Wrapper
>
<
Sidebar
/>
<
Sidebar
active
=
"
home
"
/>
<
Main
>
<
Container
>
{
/* Header */
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment