From 0baa6bfc3c954ff7086b83174178733a3aebf08a Mon Sep 17 00:00:00 2001 From: Bob Sin Date: Sat, 1 Jun 2024 20:45:45 +0900 Subject: [PATCH] =?UTF-8?q?[KAN-135]=20=EA=B2=80=EC=83=89=20>=20=EC=9E=90?= =?UTF-8?q?=EB=8F=99=EC=99=84=EC=84=B1=20=EC=B9=B4=ED=85=8C=EA=B3=A0?= =?UTF-8?q?=EB=A6=AC=20=EC=B6=94=EA=B0=80=20+=20=EC=9E=90=EB=8F=99?= =?UTF-8?q?=EC=99=84=EC=84=B1=20=ED=99=94=EB=A9=B4=20=EB=94=94=EC=9E=90?= =?UTF-8?q?=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/svg.js | 8 +++----- src/screens/detail/SearchScreen.js | 33 ++++++++++++++++++++++-------- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/src/assets/svg.js b/src/assets/svg.js index e95de90..ac2d531 100644 --- a/src/assets/svg.js +++ b/src/assets/svg.js @@ -161,11 +161,9 @@ export const svgXml = { `, search: ` - - - - - + + + `, persent: ` diff --git a/src/screens/detail/SearchScreen.js b/src/screens/detail/SearchScreen.js index 1932e0e..5b4d7d7 100644 --- a/src/screens/detail/SearchScreen.js +++ b/src/screens/detail/SearchScreen.js @@ -69,9 +69,8 @@ export default function SearchScreen(props) { headers: {Authorization: `Bearer ${context.accessToken}`}, }); - console.log('response:', response.data.results); - - setAutoCompleteData(response.data.results); + const limitedResults = response.data.results.slice(0, 5); + setAutoCompleteData(limitedResults); } catch (e) { console.log('error', e); } @@ -118,7 +117,10 @@ export default function SearchScreen(props) { <>
- + {/* 검색창 */} {item.org_display} + + {item.category} ); }} @@ -256,10 +260,11 @@ const styles = StyleSheet.create({ alignItems: 'center', }, textInput: { - marginLeft: 10, + marginLeft: 4, flex: 1, - fontSize: 12, + fontSize: 14, color: COLOR_TEXT_BLACK, + fontFamily: 'NanumSquareRound', padding: 0, }, recentHeader: { @@ -300,15 +305,25 @@ const styles = StyleSheet.create({ width: windowWidth, }, listButton: { - // backgroundColor: 'blue', + marginStart: 18, padding: 8, paddingHorizontal: 16, flexDirection: 'row', + alignItems: 'center', }, buttonText: { - fontSize: 12, + fontSize: 13, color: COLOR_TEXT_BLACK, - fontWeight: 'normal', + marginStart: 6, + fontFamily: 'NanumSquareRound', marginLeft: 2, }, + categoryText: { + fontSize: 12, + color: COLOR_PRIMARY, + marginStart: 6, + fontFamily: 'NanumSquareRoundEB', + textAlign: 'right', + marginBottom: 2.5, + } });