Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove empty state block #169

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 1 addition & 48 deletions docs/blocks/foundation/EmptyState.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Meta, Unstyled } from '@storybook/addon-docs';
import { NoResults } from './NoResults';
import { MissingInfo } from './MissingInfo'
import { NothingToDisplay } from './NothingToDisplay'
import { EmptyState } from './EmptyState'
import { Tabs, TabPanel, TabList, Tab } from '../../../src/layout/Tabs';

<Meta title="Blocks/Foundation/Empty State" />
Expand Down Expand Up @@ -343,50 +342,4 @@ export const NothingToDisplay: FC = () => (
```
</TabPanel>
</Tabs>
</Unstyled>
<br />
<Unstyled>
<Tabs direction="rtl">
<TabList>
<Tab className="light:text-white">
Demo
</Tab>
<Tab className="light:text-white">
Code
</Tab>
</TabList>
<TabPanel>
<div className="flex flex-col border justify-center items-center min-h-[840px] border-gray-700 light:bg-mystic light:text-black">
<EmptyState />
</div>
</TabPanel>
<TabPanel>
```tsx
import React, { FC } from 'react';
import { motion } from 'framer-motion';
import { Card } from 'reablocks';


export const EmptyState: FC = () => (
<motion.div
initial={{ y: -20, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
className="mt-10 sm:mx-auto sm:w-full md:w-[800px]"
>
<Card
className="w-full p-24 md:h-[628px]"
contentClassName="flex flex-col justify-center gap-2 items-center text-center"
>
<span className="text-xl font-bold">Empty State</span>
<span className="text-panel-secondary-content text-base">
Looks like this section is empty right now. Check back later or explore
other areas of the app for more content.
</span>
</Card>
</motion.div>
);

```
</TabPanel>
</Tabs>
</Unstyled>
</Unstyled>
23 changes: 0 additions & 23 deletions docs/blocks/foundation/EmptyState.tsx

This file was deleted.

Loading