From 14520f056c205c6bb961f4eb29d3467ed3561902 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Thu, 14 Nov 2024 13:38:08 -0500 Subject: [PATCH] Update additional-pages.md Add missing `use` in example --- guides/recipes/additional-pages.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guides/recipes/additional-pages.md b/guides/recipes/additional-pages.md index ba8aca9e..608b1285 100644 --- a/guides/recipes/additional-pages.md +++ b/guides/recipes/additional-pages.md @@ -21,6 +21,8 @@ Admin pages must use the `Beacon.LiveAdmin.PageBuilder` module, which provides t ```elixir defmodule MyAppWeb.Admin.DocumentsLive.Index do + use Beacon.LiveAdmin.PageBuilder + @impl true def menu_link(_prefix, _live_action), do: {:root, "Documents"} @@ -43,4 +45,4 @@ defmodule MyAppWeb.Admin.DocumentsLive.Index do end ``` -You'll notice the only different from a regular LiveView is the `menu_link/2` callback, which is used to define the menu item for the page. \ No newline at end of file +You'll notice the only different from a regular LiveView is the `menu_link/2` callback, which is used to define the menu item for the page.