1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-26 08:11:17 +02:00

add pro badge to header

This commit is contained in:
Kushagra Gour
2024-02-28 03:16:08 +05:30
parent 17575313aa
commit abb8967e9a
3 changed files with 25 additions and 14 deletions

View File

@@ -194,7 +194,9 @@ export default class App extends Component {
if (customUser) {
const prefs = { ...this.state.prefs };
Object.assign(prefs, user.settings);
this.setState({ prefs }, this.updateSetting);
const newUser = { ...user, isPro: false, ...customUser };
window.localStorage.setItem('user', newUser);
this.setState({ user: newUser, prefs }, this.updateSetting);
}
});
} else {