Skip to content

Commit

Permalink
added param name to remove duplicacy error for Font dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurupreet committed Jun 28, 2021
1 parent 737fe16 commit 5548e24
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ fun FaIcon(
private fun getFontFamily(faIconType: FaIconType): FontFamily {
return when (faIconType) {
is FaIconType.BrandIcon -> FontFamily(
Font(R.font.fa_brands_400)
Font(resId = R.font.fa_brands_400)
)
is FaIconType.SolidIcon -> FontFamily(
Font(R.font.fa_solid_900)
Font(resId = R.font.fa_solid_900)
)
is FaIconType.RegularIcon -> FontFamily(
Font(R.font.fa_regular_400)
Font(resId = R.font.fa_regular_400)
)
}
}
Expand Down

0 comments on commit 5548e24

Please sign in to comment.