File clean up. Refactor header.
This commit is contained in:
@@ -37,7 +37,10 @@ export default connect(
|
||||
}
|
||||
if (!err) {
|
||||
console.log("values", values);
|
||||
updateUserDetails({ displayName: values.displayname });
|
||||
updateUserDetails({
|
||||
displayName: values.displayname,
|
||||
photoURL: values.photoURL
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -59,6 +62,12 @@ export default connect(
|
||||
rules: [{ required: true }]
|
||||
})(<Input name="displayname" />)}
|
||||
</Form.Item>
|
||||
<Form.Item label={t("user.fields.photourl")}>
|
||||
{getFieldDecorator("photoURL", {
|
||||
initialValue: currentUser.photoURL
|
||||
})(<Input name="photoURL" />)}
|
||||
</Form.Item>
|
||||
|
||||
<Button
|
||||
type="primary"
|
||||
key="submit"
|
||||
|
||||
Reference in New Issue
Block a user