Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
public
Mímir
Commits
1215db86
Commit
1215db86
authored
Aug 18, 2020
by
Federico
Browse files
Add about button in navbar
parent
427b0691
Pipeline
#905
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/src/components/navbar/CNavbar.js
View file @
1215db86
...
...
@@ -6,6 +6,8 @@ import logo from '../../logo.svg';
import
Query
from
'
./Query
'
;
import
{
useDispatch
}
from
'
react-redux
'
;
import
{
openAboutModal
}
from
'
../about/aboutSlice
'
;
import
Button
from
"
react-bootstrap/Button
"
;
import
Form
from
"
react-bootstrap/Form
"
;
export
default
function
CNavbar
()
{
const
dispatch
=
useDispatch
();
...
...
@@ -14,14 +16,18 @@ export default function CNavbar() {
<
Navbar
fixed
=
"
top
"
bg
=
"
light
"
expand
=
"
lg
"
>
<
Container
>
<
Navbar
.
Brand
href
=
"
#home
"
onClick
=
{()
=>
dispatch
(
openAboutModal
())}
>
<
img
alt
=
""
src
=
{
logo
}
width
=
"
3
5
"
height
=
"
3
5
"
className
=
"
d-inline-block align-
bot
to
m
"
/>
{
'
'
}
<
img
alt
=
""
src
=
{
logo
}
width
=
"
3
0
"
height
=
"
3
0
"
className
=
"
d-inline-block align-to
p
"
/>
{
'
'
}
&
nbsp
;
Mímir
// A Visual Browser for the Federal Archives
<
/Navbar.Brand
>
<
Navbar
.
Toggle
aria
-
controls
=
"
basic-navbar-nav
"
/>
<
Navbar
.
Collapse
id
=
"
basic-navbar-nav
"
>
<
Nav
className
=
"
mr-auto
"
>
{
/*<Nav.Link href="#home">Home</Nav.Link>*/
}
<
/Nav
>
<
Query
/>
<
/Navbar.Collapse
>
<
Button
className
=
"
ml-sm-2
"
variant
=
"
link
"
onClick
=
{()
=>
dispatch
(
openAboutModal
())}
>
About
<
/Button
>
<
/Container
>
<
/Navbar
>
);
...
...
Write
Preview
Supports
Markdown
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