Skip to content

Commit

Permalink
Refactor DoubleSidebar component to update import and helper usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen committed Dec 22, 2024
1 parent 3ebf55b commit 9c21eec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const t = useTranslations(lang, '@studiocms/dashboard:sidebar');
</SuiDoubleSidebar>

<script>
import { SingleSidebarHelper } from "@studiocms/ui/components";
import { DoubleSidebarHelper } from "@studiocms/ui/components";
import { DropdownHelper } from "@studiocms/ui/components";

function removeTrailingSlash(url: string) {
Expand All @@ -92,7 +92,7 @@ const t = useTranslations(lang, '@studiocms/dashboard:sidebar');
sidebarLinks();

document.addEventListener('astro:page-load', () => {
new SingleSidebarHelper('nav-toggle');
new DoubleSidebarHelper();
new DropdownHelper('sidebar-user-dropdown', true);
sidebarLinks();
});
Expand Down

0 comments on commit 9c21eec

Please sign in to comment.