From 3e0a0e4bd51a34ca5f0482d0a28da9e1ccfffd75 Mon Sep 17 00:00:00 2001 From: YeaJin Ha Date: Wed, 4 Nov 2020 03:48:03 +0900 Subject: [PATCH] =?UTF-8?q?RBS=20=ED=99=94=EC=9D=B4=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/client/src/Components/Card.js | 4 ++- server/client/src/Pages/ApplyPage.js | 39 ++++++++++++++-------------- server/client/src/Pages/HomePage.js | 16 +++++------- server/schemas/index.js | 2 +- 4 files changed, 31 insertions(+), 30 deletions(-) diff --git a/server/client/src/Components/Card.js b/server/client/src/Components/Card.js index afbd8f1..91d43fb 100644 --- a/server/client/src/Components/Card.js +++ b/server/client/src/Components/Card.js @@ -53,7 +53,9 @@ function Notice({ card_index, title, date, content }) { {dateForm(date)} -
{content}
+ {content.split("\n").map((i, key) => { + return
{i}
; + })}
) diff --git a/server/client/src/Pages/ApplyPage.js b/server/client/src/Pages/ApplyPage.js index cddcfd5..c1102e9 100644 --- a/server/client/src/Pages/ApplyPage.js +++ b/server/client/src/Pages/ApplyPage.js @@ -190,25 +190,26 @@ function Apply(props) { {({ insert, remove, push }) => (
이용자
- {values.students.map((student, index) => ( - - - - - - ))} + {values.students.map((student, index) => ( +
+ + + +
+ ))} +
) diff --git a/server/schemas/index.js b/server/schemas/index.js index 92fa933..f6e943a 100644 --- a/server/schemas/index.js +++ b/server/schemas/index.js @@ -5,7 +5,7 @@ module.exports = () => { if (process.env.NODE_ENV !== 'production') { mongoose.set('debug', true); } - mongoose.connect('mongodb://cherry:1q2w3e4r@localhost:27017/admin', { + mongoose.connect('mongodb://hyj:hyj3657@localhost:27017/admin', { dbName: 'ku_rental', useNewUrlParser: true, useUnifiedTopology: true, }, (error) => { if (error) { -- GitLab