Refactor: Menu
This commit is contained in:
parent
a7309d5268
commit
7f820224ec
16 changed files with 103 additions and 92 deletions
|
|
@ -53,11 +53,15 @@ func (legal *Legal) Routes() component.Routes {
|
|||
}
|
||||
}
|
||||
|
||||
var (
|
||||
menuLegal = component.MenuItem{Title: "Legal", Path: "/legal/"}
|
||||
)
|
||||
|
||||
func (legal *Legal) HandleRoute(ctx context.Context, route string) (http.Handler, error) {
|
||||
tpl := legalTemplate.Prepare(
|
||||
legal.Dependencies.Templating,
|
||||
templating.Crumbs(
|
||||
component.MenuItem{Title: "Legal", Path: "/legal/"},
|
||||
menuLegal,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue