-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from Bae-chaegyeom/Mypage
[client] / #11,13,14,15 / Fix Mypage function
- Loading branch information
Showing
8 changed files
with
100 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,34 @@ | ||
/* eslint-disable */ | ||
import React from "react"; | ||
|
||
const MyToGoList = (props) => { | ||
return ( | ||
<div className="mypage_mylist"> | ||
<div className="mypage_mycontent_boxs"> | ||
{props.post.length === 0 ? "가고 싶은 곳을 등록해주세요!" : | ||
props.post.map(function (el) { | ||
return ( | ||
|
||
<div className="mypage_mycontent_frame"> | ||
<div className="mypage_mycontent_map">{el.mapimgpath && el.mapimgpath}</div> | ||
<div className="mypage_mycontent_content">{el.content}</div> | ||
<div className="mypage_mycontent_tag">{el.hashtags.length === 0 ? '' : | ||
el.hashtags.map(function (ele) { | ||
return (ele.tag) | ||
}) | ||
}</div> | ||
|
||
</div> | ||
) | ||
}) | ||
} | ||
{console.log(props.post)} | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
class MyToGoList extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
|
||
}; | ||
} | ||
export default MyToGoList; | ||
|
||
render() { | ||
return ( | ||
<section className="mypage_mylist"> | ||
<div className="mypage_mycontent_box"> | ||
<div className="mypage_mycontent_frame"> | ||
<div className="mypage_mycontent_map"></div> | ||
<div className="mypage_mycontent_content">내용이 들어갈 겁니다!</div> | ||
<div className="mypage_mycontent_tag">태그태그</div> | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
} | ||
} | ||
|
||
export default MyToGoList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters