Skip to content

Commit

Permalink
Use placeholder instead of style
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-ismagilov committed Aug 3, 2023
1 parent d1b6a02 commit 6cdeba2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Body/ImageWithFaceSelection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const ImageWithFaceSelection = ({ photo, alt = "", face, setFace }) => {
renderInput={(params) => (
<TextField
{...params}
label="Enter a name"
placeholder="Enter a name"
/>
)}
onChange={(event, newValue) => createPerson(newValue, crop)}
Expand Down
5 changes: 1 addition & 4 deletions src/components/Header/Selector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ const TextFieldWithIcon = styled(TextField)(() => ({
"& .MuiInputLabel-root": {
marginLeft: "25px"
},
"& .MuiInputLabel-shrink": {
display: "none",
},
}));

const filterOptions = createFilterOptions({ limit: 200 });
Expand All @@ -35,7 +32,7 @@ const Selector = ({ leftIcon, onChange, name, value, options }) => {
}}
renderInput={(params) =>
<TextFieldWithIcon {...params}
label={name}
placeholder={name}
style={{
backgroundImage: `url(${leftIcon})`,
backgroundRepeat: "no-repeat",
Expand Down

0 comments on commit 6cdeba2

Please sign in to comment.