diff --git a/src/assets/svg.js b/src/assets/svg.js index 61dfae1..f4d1ac1 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, + } });