refactor: read the required data from appState instead of passing by parent component
This commit is contained in:
@@ -7,16 +7,14 @@ type Props = {
|
||||
email: string;
|
||||
appState: AppState;
|
||||
application: WebApplication;
|
||||
closeAccountMenu: () => void;
|
||||
}
|
||||
|
||||
const User = observer(({
|
||||
email,
|
||||
appState,
|
||||
application,
|
||||
closeAccountMenu
|
||||
}: Props) => {
|
||||
const { server } = appState.accountMenu;
|
||||
const { server, closeAccountMenu } = appState.accountMenu;
|
||||
|
||||
const openPasswordWizard = () => {
|
||||
closeAccountMenu();
|
||||
|
||||
Reference in New Issue
Block a user