Skip to content

Commit

Permalink
chore: version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoon-mind committed Sep 2, 2023
1 parent 70604eb commit 80b459e
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 63 deletions.
139 changes: 119 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "up-d4te",
"version": "0.0.15",
"version": "1.0.0",
"description": "Recommend Dating Course in Korea with CLI",
"author": {
"name": "Sanghyeon Sim",
Expand Down Expand Up @@ -40,8 +40,8 @@
"ink-text-input": "5.0.1",
"meow": "11.0.0",
"mobx": "6.9.0",
"react": "18.2.0",
"prettier": "3.0.1"
"prettier": "3.0.1",
"react": "18.2.0"
},
"devDependencies": {
"@babel/cli": "^7.21.0",
Expand Down
2 changes: 1 addition & 1 deletion source/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Search = ({setlist, setStation, setId, setStoreName, setSingleShop}) => {
return;
}
setSingleShop(res.data.body);
getReviewCheck(storeId).then(res => {
getReviewCheck(storeId, 1).then(res => {
setSingleShop(data => ({...data, reviews: res.data.body}));
setId(storeId);
});
Expand Down
4 changes: 2 additions & 2 deletions source/api/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const getAllPlaceCheck = (page, station) =>

const getSinglePlaceCheck = placeId => UpdateAxios.get(`/place/${placeId}`);

const getReviewCheck = placeId =>
UpdateAxios.get(`/review/place/${placeId}?page=1`);
const getReviewCheck = (placeId, page) =>
UpdateAxios.get(`/review/place/${placeId}?page=${page}`);

const postShop = (
userId,
Expand Down
25 changes: 14 additions & 11 deletions source/component/EachShop.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ const EachShop = ({data, key, isEnd}) => {
<Newline />
</Text>
<Text>
"menu" : {'['}
<Newline />
"menu" :
{data.menu ? (
data.menu.map((item, index, array) => (
<Text key={index}>
{' '}
{'{'} "{item.menuName}" : {item.menuPrice} {'}'}
{index !== array.length - 1 ? ',' : ''}
<Newline />
</Text>
))
<Text>
{'['}
<Newline />
{data.menu.map((item, index, array) => (
<Text key={index}>
{' '}
{'{'} "{item.menuName}" : {item.menuPrice} {'}'}
{index !== array.length - 1 ? ',' : ''}
<Newline />
</Text>
))}
</Text>
) : (
<Text>메뉴가 없습니다.</Text>
'['
)}
{']'},
<Newline />
Expand Down
Loading

0 comments on commit 80b459e

Please sign in to comment.