Skip to content

Commit

Permalink
feat: set code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoon-mind committed Sep 7, 2023
1 parent 458c7f7 commit 21af26d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion source/Register.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ const Register = ({setIsSelected, setSpaceStep}) => {
</Box>
{nextStepInfo === 2 ? (
<Box>
<Text color={theme.neonGreen}>Do you have a girlfriend / boyfriend? (y/n): </Text>
<Text color={theme.neonGreen}>
Do you have a girlfriend / boyfriend? (y/n):{' '}
</Text>
<TextInput value={girlfriend} onChange={setGirlfriend} />
</Box>
) : (
Expand Down
4 changes: 2 additions & 2 deletions source/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions source/api/kakao.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion source/component/ListShop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down
2 changes: 1 addition & 1 deletion source/component/ShopDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const ShopView = ({data, reviewlist}) => {
{data.menu.map((item, index, array) => (
<Text key={index}>
{' '}
{'{'} "{item.menuName}" : {item.menuPrice} {'}'}
{'{'} "{item.name}" : {item.price} {'}'}
{index !== array.length - 1 ? ',' : ''}
<Newline />
</Text>
Expand Down

0 comments on commit 21af26d

Please sign in to comment.