Skip to content

Commit

Permalink
Open quickstart guide from helpdrawer (#6563)
Browse files Browse the repository at this point in the history
  • Loading branch information
albandum authored Jul 29, 2024
1 parent 27ca711 commit 95d7be8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions front/components/assistant/HelpDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function LinksList({
}: {
linksList: {
title: string;
href: string;
href?: string;
onClick?: () => void;
icon?: ComponentType;
description?: string;
}[];
Expand All @@ -64,6 +65,7 @@ function LinksList({
icon={link.icon}
label={link.title}
href={link.href}
onClick={link.onClick}
key={index}
description={link.description}
target="_blank"
Expand All @@ -78,11 +80,13 @@ export function HelpDrawer({
user,
show,
onClose,
setShowQuickGuide,
}: {
owner: WorkspaceType;
user: UserType;
show: boolean;
onClose: () => void;
setShowQuickGuide: (show: boolean) => void;
}) {
const router = useRouter();
const sendNotification = useContext(SendNotificationsContext);
Expand Down Expand Up @@ -138,7 +142,7 @@ export function HelpDrawer({
? [
{
title: "Quickstart Guide",
href: "https://docs.dust.tt/docs/getting-started",
onClick: () => setShowQuickGuide(true),
icon: LightbulbIcon,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function HelpAndQuickGuideWrapper({
user={user}
show={isHelpDrawerOpen}
onClose={() => setIsHelpDrawerOpen(false)}
setShowQuickGuide={setShowQuickGuide}
/>
<QuickStartGuide
owner={owner}
Expand Down

0 comments on commit 95d7be8

Please sign in to comment.