diff --git a/package.json b/package.json index 4aa7a6f..96711dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "up-d4te", - "version": "1.0.3", + "version": "1.0.4", "description": "Recommend Dating Course in Korea with CLI", "author": { "name": "Sanghyeon Sim", @@ -16,7 +16,10 @@ "up-d4te", "dating", "up-dating", - "date" + "date", + "girlfriend", + "gf", + "boyfriend" ], "type": "module", "engines": { diff --git a/source/Search.js b/source/Search.js index 9fede16..ce85ea7 100644 --- a/source/Search.js +++ b/source/Search.js @@ -113,6 +113,11 @@ const Search = ({setlist, setStation, setId, setStoreName, setSingleShop}) => { setSearch(''); return; } + if(search === 'girlfriend') { + setlist(list => [...list, [['Not Found.'], search]]); + setSearch(''); + return; + } const suggestion = suggestCommand(search); setlist(list => [...list, [[suggestion], search]]); setSearch(''); diff --git a/source/component/ListShop.js b/source/component/ListShop.js index 9c6db79..034c794 100644 --- a/source/component/ListShop.js +++ b/source/component/ListShop.js @@ -4,6 +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'; const ListShop = ({shops, setShops, setType}) => { const [confirmCommand, setConfirmCommand] = useState(''); diff --git a/source/component/ShopPost.js b/source/component/ShopPost.js index 4aebdfb..9b543b7 100644 --- a/source/component/ShopPost.js +++ b/source/component/ShopPost.js @@ -481,7 +481,7 @@ const ShopPost = ({userId, category, setStoreName}) => { if (confirmCommand == ':wq') { postShop( userId, - shopTitle, + kakaoShops[selectedShopIndex].place_name, phoneNumber, kakaoShops[selectedShopIndex].address_name, `${openTimeHour