Skip to content

Commit

Permalink
docs(README.md): use same key in the configuration section
Browse files Browse the repository at this point in the history
  • Loading branch information
indaco authored May 7, 2024
1 parent fb51f55 commit 3bd4226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func HandleHome(w http.ResponseWriter, r *http.Request) {
dropdownConfig := gropdown.NewConfigBuilder().WithPlacement(gropdown.Top).Build()

configMap := gropdown.NewConfigMap()
configMap.Add("menu-1", dropdownConfig)
configMap.Add("demo", dropdownConfig)
ctx := context.WithValue(r.Context(), gropdown.ConfigContextKey, configMap)
err := Page().Render(ctx, w)
if err != nil {
Expand Down

0 comments on commit 3bd4226

Please sign in to comment.