Review fixes.

This commit is contained in:
Dillon Kearns 2023-02-18 12:33:35 -08:00
parent ba875d789f
commit 32fa30818e

View File

@ -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 []