mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Add EMAIL app
This commit is contained in:
1 parent
107dc43624
commit
804c9982b2
13 files changed
+271
-3
No files matched your search
@@ -52,16 +52,23 @@ const useStyles = makeStyles((theme) => ({
|
||||
interface IProps {
|
||||
onChange: (event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => void;
|
||||
value: string;
|
||||
autoFocus?: boolean;
|
||||
placeholder?: string;
|
||||
}
|
||||
|
||||
const DEFAULT_PROPS = {
|
||||
onChange: () => {},
|
||||
value: '',
|
||||
autoFocus: false,
|
||||
placeholder: 'Search...',
|
||||
};
|
||||
|
||||
export const SearchField = ({ value, onChange, placeholder }: IProps = DEFAULT_PROPS) => {
|
||||
export const SearchField = ({
|
||||
value,
|
||||
onChange,
|
||||
placeholder,
|
||||
autoFocus,
|
||||
}: IProps = DEFAULT_PROPS) => {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<Paper elevation={24} variant="outlined" className={classes.bg}>
|
||||
@@ -72,6 +79,7 @@ export const SearchField = ({ value, onChange, placeholder }: IProps = DEFAULT_P
|
||||
<InputBase
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
autoFocus={autoFocus}
|
||||
placeholder={placeholder}
|
||||
classes={{
|
||||
root: classes.inputRoot,
|
||||
|
||||
Reference in new issue
Block a user