Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
minerva
frontend
Commits
8752e6b8
Commit
8752e6b8
authored
1 year ago
by
Adrian Orłów
Browse files
Options
Downloads
Patches
Plain Diff
fix: add open modal login on login button click
parent
eba1e664
No related branches found
No related tags found
2 merge requests
!223
reset the pin numbers before search results are fetch (so the results will be...
,
!100
fix: add open modal login on login button click
Pipeline
#84168
passed
1 year ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/FunctionalArea/NavBar/NavBar.component.tsx
+6
-1
6 additions, 1 deletion
src/components/FunctionalArea/NavBar/NavBar.component.tsx
with
6 additions
and
1 deletion
src/components/FunctionalArea/NavBar/NavBar.component.tsx
+
6
−
1
View file @
8752e6b8
...
@@ -3,6 +3,7 @@ import luxembourgLogoImg from '@/assets/images/luxembourg-logo.png';
...
@@ -3,6 +3,7 @@ import luxembourgLogoImg from '@/assets/images/luxembourg-logo.png';
import
{
openDrawer
}
from
'
@/redux/drawer/drawer.slice
'
;
import
{
openDrawer
}
from
'
@/redux/drawer/drawer.slice
'
;
import
{
useAppDispatch
}
from
'
@/redux/hooks/useAppDispatch
'
;
import
{
useAppDispatch
}
from
'
@/redux/hooks/useAppDispatch
'
;
import
{
openLegend
}
from
'
@/redux/legend/legend.slice
'
;
import
{
openLegend
}
from
'
@/redux/legend/legend.slice
'
;
import
{
openLoginModal
}
from
'
@/redux/modal/modal.slice
'
;
import
{
IconButton
}
from
'
@/shared/IconButton
'
;
import
{
IconButton
}
from
'
@/shared/IconButton
'
;
import
Image
from
'
next/image
'
;
import
Image
from
'
next/image
'
;
...
@@ -25,6 +26,10 @@ export const NavBar = (): JSX.Element => {
...
@@ -25,6 +26,10 @@ export const NavBar = (): JSX.Element => {
dispatch
(
openLegend
());
dispatch
(
openLegend
());
};
};
const
openModalLogin
=
():
void
=>
{
dispatch
(
openLoginModal
());
};
return
(
return
(
<
div
className
=
"flex min-h-full w-[88px] flex-col items-center justify-between bg-cultured py-8"
>
<
div
className
=
"flex min-h-full w-[88px] flex-col items-center justify-between bg-cultured py-8"
>
<
div
data-testid
=
"nav-buttons"
>
<
div
data-testid
=
"nav-buttons"
>
...
@@ -35,7 +40,7 @@ export const NavBar = (): JSX.Element => {
...
@@ -35,7 +40,7 @@ export const NavBar = (): JSX.Element => {
<
IconButton
icon
=
"export"
onClick
=
{
openDrawerExport
}
/>
<
IconButton
icon
=
"export"
onClick
=
{
openDrawerExport
}
/>
</
div
>
</
div
>
<
div
className
=
"flex flex-col gap-[10px]"
>
<
div
className
=
"flex flex-col gap-[10px]"
>
<
IconButton
icon
=
"admin"
/>
<
IconButton
icon
=
"admin"
onClick
=
{
openModalLogin
}
/>
<
IconButton
icon
=
"legend"
onClick
=
{
openDrawerLegend
}
/>
<
IconButton
icon
=
"legend"
onClick
=
{
openDrawerLegend
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
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