Client: Profile: fix re-render
This commit is contained in:
parent
e2d1881a3b
commit
0cdaf9c0f5
@ -67,12 +67,7 @@ const SectionBodyContent = (props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<MainProfile
|
<MainProfile t={t} profile={profile} updateProfile={updateProfile} />
|
||||||
t={t}
|
|
||||||
profile={profile}
|
|
||||||
culture={culture}
|
|
||||||
updateProfile={updateProfile}
|
|
||||||
/>
|
|
||||||
{tfa && tfa !== "none" && (
|
{tfa && tfa !== "none" && (
|
||||||
<LoginSettings
|
<LoginSettings
|
||||||
t={t}
|
t={t}
|
||||||
@ -95,8 +90,7 @@ const SectionBodyContent = (props) => {
|
|||||||
|
|
||||||
export default withRouter(
|
export default withRouter(
|
||||||
inject(({ auth, peopleStore }) => {
|
inject(({ auth, peopleStore }) => {
|
||||||
const { settingsStore, tfaStore } = auth;
|
const { tfaStore } = auth;
|
||||||
const { culture } = settingsStore;
|
|
||||||
|
|
||||||
const { targetUserStore } = peopleStore;
|
const { targetUserStore } = peopleStore;
|
||||||
const {
|
const {
|
||||||
@ -117,7 +111,6 @@ export default withRouter(
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
profile,
|
profile,
|
||||||
culture,
|
|
||||||
getBackupCodes,
|
getBackupCodes,
|
||||||
getNewBackupCodes,
|
getNewBackupCodes,
|
||||||
resetTfaApp,
|
resetTfaApp,
|
||||||
|
@ -60,13 +60,18 @@ const LanguagesCombo = (props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default inject(({ peopleStore }) => {
|
export default inject(({ auth, peopleStore }) => {
|
||||||
const { loadingStore, targetUserStore } = peopleStore;
|
const { loadingStore, targetUserStore } = peopleStore;
|
||||||
|
const { settingsStore } = auth;
|
||||||
|
|
||||||
const { setIsLoading } = loadingStore;
|
const { setIsLoading } = loadingStore;
|
||||||
const { updateProfileCulture } = targetUserStore;
|
const { updateProfileCulture } = targetUserStore;
|
||||||
|
|
||||||
|
const { culture } = settingsStore;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
setIsLoading,
|
setIsLoading,
|
||||||
updateProfileCulture,
|
updateProfileCulture,
|
||||||
|
culture,
|
||||||
};
|
};
|
||||||
})(observer(LanguagesCombo));
|
})(observer(LanguagesCombo));
|
||||||
|
Loading…
Reference in New Issue
Block a user