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