Skip to content

Commit

Permalink
Merge pull request #13 from ptrfrncsmrph/patch-1
Browse files Browse the repository at this point in the history
Fix custom warning for `num`
  • Loading branch information
megamaddu authored Dec 31, 2020
2 parents aabab2d + 27048a1 commit be154d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/React/Basic/Emotion.purs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int
int = unsafeCoerce

num
:: Warn (Text "`int` is deprecated and may be removed in future versions. Prefer `str` or one of the unit combinators like `px` or `em` instead.")
:: Warn (Text "`num` is deprecated and may be removed in future versions. Prefer `str` or one of the unit combinators like `px` or `em` instead.")
=> Number
-> StyleProperty
num = unsafeCoerce
Expand Down Expand Up @@ -533,4 +533,4 @@ toUnitWith4 :: forall a. (a -> String) -> String -> a -> a -> a -> a -> StylePro
toUnitWith4 f s a b c d = toUnitWithN f s [a, b, c, d]

toUnitWithN :: forall a. (a -> String) -> String -> Array a -> StyleProperty
toUnitWithN f s as = str (String.joinWith " " (map (\a -> f a <> s) as))
toUnitWithN f s as = str (String.joinWith " " (map (\a -> f a <> s) as))

0 comments on commit be154d6

Please sign in to comment.