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

@ -4,20 +4,33 @@ import React from "react"
interface InputProps {
type: string
name?: string;
placeholder?: string
value: string
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
autocomplete?: string
disabled?: boolean
}
const Input: React.FC<InputProps> = ({ type, placeholder, value, onChange, autocomplete, disabled }) => {
const Input: React.FC<InputProps> = ({
type,
name,
placeholder,
value,
onChange,
onKeyDown,
autocomplete,
disabled
}) => {
return (
<TextField
type={type}
name={name}
placeholder={placeholder}
value={value}
onChange={onChange}
onKeyDown={onKeyDown}
autoComplete={autocomplete}
fullWidth
variant="outlined"