Ref: modification components in selfcheckout
This commit is contained in:
parent
251a6a2a6a
commit
ab7a02bcca
40 changed files with 1315 additions and 557 deletions
|
|
@ -1,20 +1,24 @@
|
|||
"use client"
|
||||
import Grid2 from "@mui/material/Grid2"
|
||||
import React from "react"
|
||||
import Button from "@atoms/Button"
|
||||
"use client";
|
||||
import Grid2 from "@mui/material/Grid2";
|
||||
import React from "react";
|
||||
import Button from "@atoms/Button";
|
||||
|
||||
interface NumericKeyProps {
|
||||
label: string | number
|
||||
onClick: () => void
|
||||
className?: string
|
||||
label: string | number;
|
||||
onClick: () => void;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const NumericKey: React.FC<NumericKeyProps> = ({ label, onClick, className }) => {
|
||||
return (
|
||||
<Grid2 container justifyContent="center" component="div">
|
||||
<Button label={label.toString()} onClick={onClick} className={`h-16 w-full ${className}`} />
|
||||
<Button
|
||||
label={label.toString()}
|
||||
onClick={onClick}
|
||||
className={`h-16 w-full text-3xl font-bold ${className}`}
|
||||
/>
|
||||
</Grid2>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default NumericKey
|
||||
export default NumericKey;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue