Skip to content

Commit

Permalink
Remove empty state block
Browse files Browse the repository at this point in the history
  • Loading branch information
ghsteff committed May 8, 2024
1 parent 6c00c2e commit 6e1ede1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 71 deletions.
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.

0 comments on commit 6e1ede1

Please sign in to comment.