saleor-dashboard/src/orders/components/OrderHistory/Label.tsx
Michał Droń d5c9a3dae8
Add trailing commas (#2062)
* Require trailing commas

* Add trailing commas

* Add trailing commas in testUtils dir

* Add trailing commas
2022-06-21 11:36:55 +02:00

24 lines
402 B
TypeScript

import { Typography } from "@material-ui/core";
import React from "react";
export enum LabelSizes {
sm = 12,
md = 14,
}
interface LabelProps {
text: string;
size?: LabelSizes;
}
const Label: React.FC<LabelProps> = ({ text, size = 12 }) => (
<Typography
variant="caption"
color="textSecondary"
style={{ fontSize: size }}
>
{text}
</Typography>
);
export default Label;