mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-26 13:21:42 +03:00
Review fixes.
This commit is contained in:
parent
ba875d789f
commit
32fa30818e
@ -156,7 +156,7 @@ formWithFields elmCssView fields viewFn =
|
|||||||
|
|
||||||
|
|
||||||
fieldToParam : ( String, Kind ) -> ( String, Maybe Type.Annotation )
|
fieldToParam : ( String, Kind ) -> ( String, Maybe Type.Annotation )
|
||||||
fieldToParam ( name, kind ) =
|
fieldToParam ( name, _ ) =
|
||||||
( name, Nothing )
|
( name, Nothing )
|
||||||
|
|
||||||
|
|
||||||
@ -221,6 +221,10 @@ provide :
|
|||||||
, declarations : List Elm.Declaration
|
, declarations : List Elm.Declaration
|
||||||
}
|
}
|
||||||
provide { fields, view, elmCssView } =
|
provide { fields, view, elmCssView } =
|
||||||
|
if List.isEmpty fields then
|
||||||
|
Nothing
|
||||||
|
|
||||||
|
else
|
||||||
let
|
let
|
||||||
form : { declaration : Elm.Declaration, call : List Elm.Expression -> Elm.Expression, callFrom : List String -> List Elm.Expression -> Elm.Expression }
|
form : { declaration : Elm.Declaration, call : List Elm.Expression -> Elm.Expression, callFrom : List String -> List Elm.Expression -> Elm.Expression }
|
||||||
form =
|
form =
|
||||||
@ -246,10 +250,6 @@ provide { fields, view, elmCssView } =
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
in
|
in
|
||||||
if List.isEmpty fields then
|
|
||||||
Nothing
|
|
||||||
|
|
||||||
else
|
|
||||||
Just
|
Just
|
||||||
{ formHandlers = formHandlersDeclaration.call []
|
{ formHandlers = formHandlersDeclaration.call []
|
||||||
, form = form.call []
|
, form = form.call []
|
||||||
|
Loading…
Reference in New Issue
Block a user