Remove some hardcoding.

This commit is contained in:
Dillon Kearns 2022-09-12 17:02:54 -07:00
parent 378a8d7b41
commit b75e285247

View File

@ -138,10 +138,10 @@ routeToBranch route =
(\segment -> (\segment ->
case segment of case segment of
StaticSegment name -> StaticSegment name ->
Elm.CodeGen.stringPattern "user" Elm.CodeGen.stringPattern (decapitalize name)
DynamicSegment string -> DynamicSegment name ->
Elm.CodeGen.varPattern "id" Elm.CodeGen.varPattern (decapitalize name)
) )
) )
, Elm.CodeGen.val "TODO" , Elm.CodeGen.val "TODO"