swa07016

NavbarToggler color 변경

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