Skip to content

Commit

Permalink
fix bug, closes #26
Browse files Browse the repository at this point in the history
  • Loading branch information
lugenx authored and humphd committed Nov 28, 2022
1 parent 3a1ee4e commit d5c875c
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/NavigationBar.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import React, { Button, Container, Navbar } from "react-bootstrap";
import React, { Button, Container, Navbar } from 'react-bootstrap';
import PropTypes from 'prop-types';

function NavigationBar({isAuthorized, repository, requestAuthDialog}) {
return <>
function NavigationBar({ isAuthorized, repository, requestAuthDialog }) {
return (
<>
<Navbar bg="dark" variant="dark">
<Container className="Nav">
<Navbar.Brand href="/">My Photohub 📸</Navbar.Brand>
<Navbar.Toggle />
<Navbar.Collapse className="justify-content-end">
<Navbar.Text>
{isAuthorized
? `Using repository ${repository} `
: `Not signed in `}
{isAuthorized ? `Using repository ${repository} ` : `Not signed in `}
&nbsp;&nbsp;
<Button
variant="outline-success"
Expand All @@ -31,9 +30,9 @@ function NavigationBar({isAuthorized, repository, requestAuthDialog}) {
}

NavigationBar.propTypes = {
isAuthorized:PropTypes.bool,
repository:PropTypes.string,
requestAuthDialog:PropTypes.func,
}
isAuthorized: PropTypes.bool,
repository: PropTypes.string,
requestAuthDialog: PropTypes.func,
};

export default NavigationBar
export default NavigationBar;

0 comments on commit d5c875c

Please sign in to comment.