Ref: modification components in selfcheckout
This commit is contained in:
parent
251a6a2a6a
commit
ab7a02bcca
40 changed files with 1315 additions and 557 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue