Commit 518b3ba4 authored by Choi Ga Young's avatar Choi Ga Young
Browse files

x

parent fd2237cd
...@@ -21,3 +21,5 @@ ...@@ -21,3 +21,5 @@
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
debug.log
\ No newline at end of file
...@@ -53,7 +53,9 @@ function Notice({ card_index, title, date, content }) { ...@@ -53,7 +53,9 @@ function Notice({ card_index, title, date, content }) {
<Col md={2} xs={4} className="p-0" >{dateForm(date)}</Col> <Col md={2} xs={4} className="p-0" >{dateForm(date)}</Col>
</Card.Header> </Card.Header>
<Accordion.Collapse eventKey={card_index + 1}> <Accordion.Collapse eventKey={card_index + 1}>
<Text><pre className="text-overflow-ellipsis w-100 whiteSpace-initial">{content}</pre></Text> <Text>{content.split("\n").map((i, key) => {
return <div key={key}>{i}</div>;
})}</Text>
</Accordion.Collapse> </Accordion.Collapse>
</Card > </Card >
) )
......
...@@ -5,7 +5,7 @@ module.exports = () => { ...@@ -5,7 +5,7 @@ module.exports = () => {
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
mongoose.set('debug', true); mongoose.set('debug', true);
} }
mongoose.connect('mongodb://cherry:1q2w3e4r@localhost:27017/admin', { mongoose.connect('mongodb://rkyoung7:rkdud127@localhost:27017/admin', {
dbName: 'ku_rental', useNewUrlParser: true, useUnifiedTopology: true, dbName: 'ku_rental', useNewUrlParser: true, useUnifiedTopology: true,
}, (error) => { }, (error) => {
if (error) { if (error) {
......
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