Ref: modification components in selfcheckout

This commit is contained in:
Luis Felipe Cadavid 2024-09-30 15:17:38 -05:00
parent 251a6a2a6a
commit ab7a02bcca
40 changed files with 1315 additions and 557 deletions

View file

@ -7,15 +7,16 @@ interface LabelProps {
text: string
}
const Label: React.FC<LabelProps> = ({ htmlFor, text }) => {
const Label = React.memo(({ htmlFor, text }: LabelProps) => {
return (
<label htmlFor={htmlFor} className="mb-2 block">
<Typography variant="subtitle1">
{text}
</Typography>
<Typography
variant="subtitle1">{text}</Typography>
</label>
)
}
);
});
Label.displayName = "Label";
export default Label