Skip to content

Commit

Permalink
feat: make shop list error message json format
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoon-mind committed Sep 2, 2023
1 parent 7265f74 commit 7282516
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/component/ListShop.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ const ListShop = ({shops, setShops, setType}) => {
<Box marginY={1} flexDirection="column">
{shop.length === 0 ? (
<Box flexDirection="column">
<Text>Status code: 404</Text>
<Text color={theme.red}>검색 결과가 없습니다.</Text>
<Text>{"{"}</Text>
<Text> "Status code": 404</Text>
<Text> "Description": "검색 결과가 없습니다."</Text>
<Text>{"{"}</Text>
</Box>
) : (
<Box flexDirection="column">
Expand Down

0 comments on commit 7282516

Please sign in to comment.