Skip to content

Commit

Permalink
fix stories
Browse files Browse the repository at this point in the history
  • Loading branch information
kof committed Jan 20, 2025
1 parent 45af6d5 commit 8f93327
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion apps/builder/app/dashboard/dashboard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const Empty: StoryFn<typeof Dashboard> = () => {
<Dashboard
user={user}
projects={[]}
templates={[]}
userPlanFeatures={userPlanFeatures}
publisherHost={"https://wstd.work"}
/>
Expand Down Expand Up @@ -72,6 +71,33 @@ export const WithProjects: StoryFn<typeof Dashboard> = () => {
<Dashboard
user={user}
projects={projects}
userPlanFeatures={userPlanFeatures}
publisherHost={"https://wstd.work"}
/>
);
return <RouterProvider router={router} />;
};

export const WithTemplates: StoryFn<typeof Dashboard> = () => {
const projects = [
{
id: "0",
createdAt: new Date().toString(),
title: "My Project",
domain: "domain.com",
userId: "",
isDeleted: false,
isPublished: false,
latestBuild: null,
previewImageAsset: null,
previewImageAssetId: "",
latestBuildVirtual: null,
marketplaceApprovalStatus: "UNLISTED" as const,
} as DashboardProject,
];
const router = createRouter(
<Dashboard
user={user}
templates={projects}
userPlanFeatures={userPlanFeatures}
publisherHost={"https://wstd.work"}
Expand Down

0 comments on commit 8f93327

Please sign in to comment.