Skip to content

Commit

Permalink
fix: invalid prop (style) in Resume example (#2518)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj authored Jan 19, 2024
1 parent cf73180 commit 3c62070
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-rockets-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-pdf/examples': patch
---

Fix invalid prop (style) in Resume example
9 changes: 2 additions & 7 deletions packages/examples/src/resume/Experience.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ const styles = StyleSheet.create({
fontSize: 11,
fontFamily: 'Lato Italic',
},
detailContainer: {
flexDirection: 'row',
},
detailLeftColumn: {
flexDirection: 'column',
marginLeft: 10,
Expand Down Expand Up @@ -75,10 +72,8 @@ const ExperienceEntry = ({ company, details, position, date }) => {
</View>
</View>
<List>
{details.map(detail => (
<Item key={detail.company} style={styles.detailContainer}>
{detail}
</Item>
{details.map((detail) => (
<Item key={detail.company}>{detail}</Item>
))}
</List>
</View>
Expand Down

0 comments on commit 3c62070

Please sign in to comment.