Skip to content

Commit

Permalink
Exporting Card from index.tsx and adding storybook variants
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolagigic committed Jan 5, 2021
1 parent 6f54d14 commit be99c2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions superset-frontend/src/common/components/common.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
RangePicker as AntdRangePicker,
} from './DatePicker';
import Badge from './Badge';
import Card from './Card';
import ProgressBar from './ProgressBar';
import Collapse from './Collapse';
import { CronPicker, CronError } from './CronPicker';
Expand Down Expand Up @@ -264,6 +265,9 @@ export const BadgeSuccess = () => <Badge status="success" text="Success" />;
export const BadgeError = () => <Badge status="error" text="Error" />;
export const BadgeSmall = () => <Badge count={100} size="small" />;

export const CardDefault = () => <Card />;
export const CardPadded = () => <Card padded />;

export const CollapseDefault = () => (
<Collapse defaultActiveKey={['1']}>
<Collapse.Panel header="Hi! I am a header" key="1">
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/common/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export {
AutoComplete,
Avatar,
Button,
Card,
Checkbox,
Col,
DatePicker,
Expand All @@ -58,6 +57,7 @@ export { FormInstance } from 'antd/lib/form';

export { default as Collapse } from './Collapse';
export { default as Badge } from './Badge';
export { default as Card } from './Card';
export { default as Progress } from './ProgressBar';

export const MenuItem = styled(AntdMenu.Item)`
Expand Down

0 comments on commit be99c2c

Please sign in to comment.