From 21af26db78124d34c9def7f20379b32f371f33d0 Mon Sep 17 00:00:00 2001
From: Sanghyeon Sim <5338095@gmail.com>
Date: Thu, 7 Sep 2023 16:43:04 +0900
Subject: [PATCH] feat: set code formatting
---
source/Register.js | 4 +++-
source/Search.js | 4 ++--
source/api/kakao.js | 4 ++--
source/component/ListShop.js | 2 +-
source/component/ShopDetail.js | 2 +-
5 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/source/Register.js b/source/Register.js
index 7b6eae0..a9a7245 100644
--- a/source/Register.js
+++ b/source/Register.js
@@ -58,7 +58,9 @@ const Register = ({setIsSelected, setSpaceStep}) => {
{nextStepInfo === 2 ? (
- Do you have a girlfriend / boyfriend? (y/n):
+
+ Do you have a girlfriend / boyfriend? (y/n):{' '}
+
) : (
diff --git a/source/Search.js b/source/Search.js
index 127b3d1..6fb9d11 100644
--- a/source/Search.js
+++ b/source/Search.js
@@ -113,12 +113,12 @@ const Search = ({setlist, setStation, setId, setStoreName, setSingleShop}) => {
setSearch('');
return;
}
- if(search === 'girlfriend') {
+ if (search === 'girlfriend') {
setlist(list => [...list, [['404 Not Found.'], search]]);
setSearch('');
return;
}
- if(search === 'boyfriend') {
+ if (search === 'boyfriend') {
setlist(list => [...list, [['404 Not Found.'], search]]);
setSearch('');
return;
diff --git a/source/api/kakao.js b/source/api/kakao.js
index 27e5faf..36ac31f 100644
--- a/source/api/kakao.js
+++ b/source/api/kakao.js
@@ -5,8 +5,8 @@ export const fetchKakaoShops = (query, category) => {
dotenv.config();
// const API_KEY = process.env.KAKAO_API_KEY;
- const API_KEY = "abf86987c958ad34e9313ed7e91008c5";
-
+ const API_KEY = 'abf86987c958ad34e9313ed7e91008c5';
+
const url = `https://dapi.kakao.com/v2/local/search/keyword.json?query=${query}&size=3`;
if (category == 'cafe') {
diff --git a/source/component/ListShop.js b/source/component/ListShop.js
index 034c794..8f6310c 100644
--- a/source/component/ListShop.js
+++ b/source/component/ListShop.js
@@ -4,7 +4,7 @@ import theme from '../Theme.js';
import TextInput from 'ink-text-input';
import EachShop from './EachShop.js';
import shoplist from '../examples/shoplist.js';
-import { getAllPlaceCheck } from '../api/remote.js';
+import {getAllPlaceCheck} from '../api/remote.js';
const ListShop = ({shops, setShops, setType}) => {
const [confirmCommand, setConfirmCommand] = useState('');
diff --git a/source/component/ShopDetail.js b/source/component/ShopDetail.js
index 630addc..e17b2dd 100644
--- a/source/component/ShopDetail.js
+++ b/source/component/ShopDetail.js
@@ -143,7 +143,7 @@ const ShopView = ({data, reviewlist}) => {
{data.menu.map((item, index, array) => (
{' '}
- {'{'} "{item.menuName}" : {item.menuPrice} {'}'}
+ {'{'} "{item.name}" : {item.price} {'}'}
{index !== array.length - 1 ? ',' : ''}