swa07016

NavbarToggler color 변경

......@@ -16,13 +16,15 @@ const NavBar = (props) => {
return (
<>
<Navbar style={{'backgroundColor': '#940f0f', 'display':'block'}} light expand="md" fixed="top">
<Navbar dark style={{'backgroundColor': '#940f0f', 'display':'block'}} light expand="md" fixed="top">
<Container className="themed-container">
<span>
<a href='/'><img src="logo.png" alt="logo" width="50" /></a>
</span>
<NavbarBrand href="/" style={{'marginLeft':'1.5rem', 'color':'#fff'}}>MEALKHU</NavbarBrand>
<NavbarToggler onClick={toggle} />
<NavbarToggler style={{
}} onClick={toggle} />
<Collapse isOpen={isOpen} navbar>
<Nav className="mr-auto" navbar>
<NavItem>
......
......@@ -64,7 +64,7 @@ app.post("/api/signup", (req, res) => {
let sql_usercheck = `SELECT * FROM USER WHERE name='${req.body.username}';`;
connection.query(sql_usercheck, (err, rows, fields) => {
if(rows.length!==0) {
if(rows.length) {
return res.json({
code: 400,
message: 'user exist'
......@@ -100,7 +100,7 @@ app.post("/api/signin", (req, res) => {
let sql_usercheck = `SELECT * FROM USER WHERE name='${req.body.username}';`;
connection.query(sql_usercheck, (err, rows, fields) => {
if(rows.length === 0) {
if(!rows.length) {
return res.send({
code: 400,
message: "user does not exist",
......