mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 21:02:33 +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 ( name, kind ) =
|
||||
fieldToParam ( name, _ ) =
|
||||
( name, Nothing )
|
||||
|
||||
|
||||
@ -221,6 +221,10 @@ provide :
|
||||
, declarations : List Elm.Declaration
|
||||
}
|
||||
provide { fields, view, elmCssView } =
|
||||
if List.isEmpty fields then
|
||||
Nothing
|
||||
|
||||
else
|
||||
let
|
||||
form : { declaration : Elm.Declaration, call : List Elm.Expression -> Elm.Expression, callFrom : List String -> List Elm.Expression -> Elm.Expression }
|
||||
form =
|
||||
@ -246,10 +250,6 @@ provide { fields, view, elmCssView } =
|
||||
)
|
||||
)
|
||||
in
|
||||
if List.isEmpty fields then
|
||||
Nothing
|
||||
|
||||
else
|
||||
Just
|
||||
{ formHandlers = formHandlersDeclaration.call []
|
||||
, form = form.call []
|
||||
|
Loading…
Reference in New Issue
Block a user