Skip to content

Commit

Permalink
Fix/ size of compo (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsjmine129 authored Jun 1, 2024
1 parent 9a1925d commit d1ffd19
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions src/components/StoreCompo.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function StoreCompo(props) {
key={index.toString()}
style={{
width: addPadding ? windowWidth - 32 : windowWidth - 32,
height: windowWidth / 3,
// height: windowWidth / 3,
paddingHorizontal: addPadding,
// backgroundColor: storeData.id % 2 === 0 ? 'red' : 'blue',
// backgroundColor: 'blue',
Expand Down Expand Up @@ -156,33 +156,14 @@ export default function StoreCompo(props) {

{storeData.representativeReviewContent ? (
<>
<Text
numberOfLines={4}
style={{
fontSize: 11,
color: COLOR_TEXT60GRAY,
fontFamily: 'NanumSquareRoundR',
}}>
<Text numberOfLines={3} style={styles.review}>
{storeData.representativeReviewContent}
</Text>
</>
) : (
<>
<Text
style={{
fontSize: 11,
color: COLOR_TEXT70GRAY,
fontFamily: 'NanumSquareRoundR',
}}>
{'아직 작성된 리뷰가 없어요!'}
</Text>
<Text
numberOfLines={1}
style={{
fontSize: 11,
color: COLOR_TEXT60GRAY,
fontFamily: 'NanumSquareRoundR',
}}>
<Text style={styles.review}>{'아직 작성된 리뷰가 없어요!'}</Text>
<Text numberOfLines={2} style={styles.review}>
{`먹구스꾸에서 ${storeData.name} 리뷰 쓰고 첫 리뷰의 주인공이 되어보세요!`}
</Text>
</>
Expand All @@ -200,4 +181,10 @@ const styles = StyleSheet.create({
backgroundColor: '#D9D9D9', // Change color as needed
width: '100%', // Adjust width as needed
},
review: {
fontSize: 11,
color: COLOR_TEXT70GRAY,
fontFamily: 'NanumSquareRoundR',
marginRight: 5,
},
});

0 comments on commit d1ffd19

Please sign in to comment.