saleor-dashboard/src/storybook/CardDecorator.tsx
Dominik Żegleń 935a6f4542
Reduce bundle size (#1103)
* Add analysis tools

* Use deep imports to reduce bundle size

* Remove tslint config

* Remove unused packages

* Remove lodash-es references

* Use root level mui imports

* Remove mui from restricted imports
2021-05-14 10:15:15 +02:00

16 lines
330 B
TypeScript

import { Card, CardContent } from "@material-ui/core";
import React from "react";
const CardDecorator = storyFn => (
<Card
style={{
margin: "auto",
overflow: "visible",
position: "relative",
width: 400
}}
>
<CardContent>{storyFn()}</CardContent>
</Card>
);
export default CardDecorator;