From 14f9dbd6f4be4619b4bd000706a1c461e5b7b471 Mon Sep 17 00:00:00 2001 From: Paul Valladares Date: Sat, 25 Nov 2023 05:24:10 -0600 Subject: refactor: destructure props in `SidebarSublist.astro` (#1149) --- packages/starlight/components/SidebarSublist.astro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/starlight/components/SidebarSublist.astro b/packages/starlight/components/SidebarSublist.astro index 417e2dbf..399d191f 100644 --- a/packages/starlight/components/SidebarSublist.astro +++ b/packages/starlight/components/SidebarSublist.astro @@ -7,17 +7,19 @@ interface Props { sublist: SidebarEntry[]; nested?: boolean; } + +const { sublist, nested } = Astro.props; --- -