refactor: extract empty state and update basepath to /app/
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-02-06 20:41:50 +08:00
parent 0fc57ac637
commit 6411268090
7 changed files with 60 additions and 45 deletions

View File

@@ -60,14 +60,25 @@ export const Primary: Story = {
endTime: new Date('2026-06-14T04:00:00.000Z'),
},
],
assembleFooter: () => <Button className="w-full"></Button>,
footer: () => <Button className="w-full"></Button>,
},
};
export const Skeleton: Story = {
export const Empty: Story = {
decorators: [Story => <div className="h-screen">{Story()}</div>],
args: {
events: [],
footer: () => <Button className="w-full"></Button>,
},
parameters: {
layout: 'fullscreen',
},
};
export const Loading: Story = {
render: () => <EventGridSkeleton />,
args: {
events: [],
assembleFooter: () => <UiSkeleton className="w-full" />,
footer: () => <UiSkeleton className="w-full" />,
},
};