Skip to content

Commit 77d7b05

Browse files
committed
feat: add EmptyState stories
1 parent 420b367 commit 77d7b05

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import type { Meta, StoryObj } from "@storybook/react";
2+
import { BadgeContainer, mobileViewport } from "stories/utils";
3+
import { EmptyState } from "./EmptyState";
4+
5+
const meta = {
6+
title: "project/Overview/EmptyState",
7+
component: Component,
8+
parameters: {
9+
layout: "centered",
10+
},
11+
} satisfies Meta<typeof Component>;
12+
13+
export default meta;
14+
type Story = StoryObj<typeof meta>;
15+
16+
export const Desktop: Story = {
17+
parameters: {
18+
nextjs: {
19+
appDirectory: true,
20+
},
21+
},
22+
};
23+
24+
export const Mobile: Story = {
25+
parameters: {
26+
nextjs: {
27+
appDirectory: true,
28+
},
29+
viewport: mobileViewport("iphone14"),
30+
},
31+
};
32+
33+
function Component() {
34+
return (
35+
<div className="container max-w-[1150px] py-8">
36+
<BadgeContainer label="Base">
37+
<EmptyState />
38+
</BadgeContainer>
39+
</div>
40+
);
41+
}

apps/dashboard/src/app/team/[team_slug]/[project_slug]/components/EmptyState.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export function EmptyState() {
2626
Project Overview is Coming Soon
2727
</h3>
2828
<p className="text-muted-foreground text-base">
29-
Understand how usees are interacting with your project in a
30-
glance.
29+
Understand how users are interacting with your project
3130
</p>
3231
</div>
3332
<div className="flex flex-wrap gap-2 justify-center items-center">

0 commit comments

Comments
 (0)