Skip to content

Commit cc94bb3

Browse files
committed
Switched the Custom to use tuple parames. Merged remote-tracking branch 'upstream/master'
@ Conflicts: @ src/Fable.React/Fable.Helpers.React.fs
2 parents 18f97e8 + 084ec4c commit cc94bb3

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/Fable.React/Fable.Helpers.React.fs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ open Fable.Core.JsInterop
55
open Fable.Import
66

77
module Props =
8-
type ICSSProp =
9-
interface end
10-
118
type IProp =
129
interface end
1310

@@ -245,12 +242,6 @@ module Props =
245242
| Unselectable of bool
246243
interface IHTMLProp
247244

248-
let inline Style (css: ICSSProp list): HTMLAttr =
249-
!!("style", keyValueList CaseRules.LowerFirst css)
250-
251-
let inline Data(key: string, value: obj): IHTMLProp =
252-
!!("data-" + key, value)
253-
254245
type SVGAttr =
255246
| ClipPath of string
256247
| Cx of obj
@@ -717,9 +708,14 @@ module Props =
717708
| WritingMode of obj
718709
| ZIndex of obj
719710
| Zoom of obj
720-
interface ICSSProp
721-
/// If you are searching for a way to provide a value not supported by this DSL then use something like: CSSProp.Custom "align-content" "center"
722-
static member inline Custom (key: string) (value: obj) : ICSSProp = !!(key, value)
711+
/// If you are searching for a way to provide a value not supported by this DSL then use something like: CSSProp.Custom ("align-content", "center")
712+
static member inline Custom (key: string, value: obj) : CSSProp = !!(key, value)
713+
714+
let inline Style (css: CSSProp list): HTMLAttr =
715+
!!("style", keyValueList CaseRules.LowerFirst css)
716+
717+
let inline Data(key: string, value: obj): IHTMLProp =
718+
!!("data-" + key, value)
723719

724720
open Props
725721
open Fable.Import.React

0 commit comments

Comments
 (0)