mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-26 05:13:24 +03:00
Remove some hardcoding.
This commit is contained in:
parent
378a8d7b41
commit
b75e285247
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user