Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dantio committed May 31, 2022
1 parent b04194b commit 1b6a950
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/props/style-to-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ export const styleToProps = (item: LazyItemNode, styles: Styles, parentStyles: S
break;
}
break;
case 'font-family':
const font = value.split(',').filter(f => !!f).map(f => f.replace(/["']/g, '').trim())
case 'font-family': {
const font = value.split(',').filter(f => !!f).map(f => f.replace(/["']/g, '').trim());
props.font = font[0] || 'Roboto';
break;
}
case 'color':
props.color = value;
break;
Expand Down

0 comments on commit 1b6a950

Please sign in to comment.