Dismiss the avatar menu after selecting "Update Signal"

This commit is contained in:
Jordan Rose 2023-05-17 10:50:47 -07:00 committed by GitHub
parent 6e5d9f5dd8
commit 2ee15cdfa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View file

@ -173,13 +173,16 @@ export function MainHeader({
title={title}
avatarPath={avatarPath}
hasPendingUpdate={hasPendingUpdate}
startUpdate={startUpdate}
// See the comment above about `sharedGroupNames`.
sharedGroupNames={[]}
onEditProfile={() => {
toggleProfileEditor();
setShowAvatarPopup(false);
}}
onStartUpdate={() => {
startUpdate();
setShowAvatarPopup(false);
}}
onViewPreferences={() => {
showSettings();
setShowAvatarPopup(false);