Skip to content

Commit

Permalink
feat: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoon-mind committed Sep 1, 2023
1 parent 7fcfe21 commit a921aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion source/component/ListShop.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const ListShop = ({shops, setShops, setType}) => {
let last = 3;
const [confirmCommand, setConfirmCommand] = useState('');
const loadMore = () => {
// if (shops)
setShops([...shops, ...shoplist.slice(first + 3, last + 3)]);
};

Expand Down
5 changes: 2 additions & 3 deletions source/component/ShopDetail.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {useState} from 'react';
import {Text, Newline, Box, Spacer, useInput} from 'ink';
import {Text, Newline, Box, useInput} from 'ink';
import TextInput from 'ink-text-input';
import theme from '../Theme.js';

Expand All @@ -16,10 +16,10 @@ const ShopDetail = ({id, setId, userId, singleShop}) => {
const onCommandSubmit = () => {
if (command === ':q') {
setId(0);
return;
}
if (command === ':ar') {
// TODO : add review
setCommand('');
setIsAddReview(true);
}
if (command === ':lm') {
Expand All @@ -33,7 +33,6 @@ const ShopDetail = ({id, setId, userId, singleShop}) => {
},
];
setData({...data, reviews: updatedReviews});
setCommand('');
}
// handle invalid command
setCommand('');
Expand Down

0 comments on commit a921aff

Please sign in to comment.