Commit 86314ee3 authored by Aron Fiechter's avatar Aron Fiechter
Browse files

Open AbutModal when clicking app title

parent 5ed65e70
......@@ -4,12 +4,16 @@ import Nav from 'react-bootstrap/Nav';
import Container from 'react-bootstrap/Container';
import logo from '../../logo.svg';
import Query from './Query';
import { useDispatch } from 'react-redux';
import { openAboutModal } from '../about/aboutSlice';
export default function CNavbar() {
const dispatch = useDispatch();
export default function CNavbar(props) {
return (
<Navbar fixed="top" bg="light" expand="lg">
<Container>
<Navbar.Brand href="#home">
<Navbar.Brand href="#home" onClick={() => dispatch(openAboutModal())}>
<img alt="" src={logo} width="35" height="35" className="d-inline-block align-bottom" />{' '}
&nbsp; Mímir // A Visual Browser for the Federal Archives
</Navbar.Brand>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment