diff --git a/lib/livebook_web/components/core_components.ex b/lib/livebook_web/components/core_components.ex index 48384f967..5f5b82203 100644 --- a/lib/livebook_web/components/core_components.ex +++ b/lib/livebook_web/components/core_components.ex @@ -593,7 +593,7 @@ defmodule LivebookWeb.CoreComponents do """ slot :inner_block, required: true - slot :actions, default: nil + slot :actions def no_entries(assigns) do ~H""" @@ -605,7 +605,7 @@ defmodule LivebookWeb.CoreComponents do
<%= render_slot(@inner_block) %>
- <%= @actions && render_slot(@actions) %> + <%= render_slot(@actions) %> """ diff --git a/lib/livebook_web/live/home_live.ex b/lib/livebook_web/live/home_live.ex index cefb7b91d..bbaccd1eb 100644 --- a/lib/livebook_web/live/home_live.ex +++ b/lib/livebook_web/live/home_live.ex @@ -94,7 +94,19 @@ defmodule LivebookWeb.HomeLive do <%= if @starred_notebooks == [] do %> <.no_entries> - Your starred notebooks will appear here. Check out the notebooks below to get started. + Your starred notebooks will appear here.
+ First time around? Check out the notebooks below to get started. + <:actions> + + Learn more + + +
<% # Note: it's fine to use stateless components in this comprehension,