mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
added search field
This commit is contained in:
1 parent
c414116b49
commit
660f534176
9 files changed
+126
-20
No files matched your search
@@ -12,7 +12,14 @@ const useStyles = makeStyles({
|
||||
},
|
||||
});
|
||||
|
||||
function ProfileField({ label, value, handleChange, allowChange, multiline }) {
|
||||
function ProfileField({
|
||||
label,
|
||||
value,
|
||||
handleChange,
|
||||
allowChange,
|
||||
multiline,
|
||||
inputRef,
|
||||
}) {
|
||||
const classes = useStyles();
|
||||
const _handleChange = (e) => handleChange(e.target.value);
|
||||
|
||||
@@ -25,6 +32,7 @@ function ProfileField({ label, value, handleChange, allowChange, multiline }) {
|
||||
onChange={_handleChange}
|
||||
disabled={!allowChange}
|
||||
multiline={multiline}
|
||||
inputRef={inputRef}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
@@ -33,6 +41,7 @@ function ProfileField({ label, value, handleChange, allowChange, multiline }) {
|
||||
ProfileField.defaultProps = {
|
||||
allowChange: true,
|
||||
multiline: false,
|
||||
inputRef: null,
|
||||
};
|
||||
|
||||
export default ProfileField;
|
||||
@@ -66,6 +66,7 @@ export function TwitterProfile() {
|
||||
value={bio}
|
||||
handleChange={handleBioChange}
|
||||
multiline
|
||||
inputRef={(input) => input && input.focus()}
|
||||
/>
|
||||
<ProfileField
|
||||
label={t("APPS_TWITTER_EDIT_PROFILE_LOCATION")}
|
||||
|
||||
Reference in new issue
Block a user