fix: App Install Dropdown Sort Properly [CAL-2285] (#10672)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
Joe Au-Yeung
2023-08-12 21:30:15 +00:00
committed by GitHub
co-authored by Peer Richelsen
parent 26149e2b04
commit cfef92a7bc
4 changed files with 7 additions and 3 deletions
@@ -112,7 +112,7 @@ export const InstallAppButtonChild = ({
);
}}>
<p>
{team.name} {isInstalled && `(${t("installed")})`}
{t(team.name)} {isInstalled && `(${t("installed")})`}
</p>
</DropdownItem>
);
@@ -1997,6 +1997,7 @@
"attendee_last_name_variable": "Attendee last name",
"attendee_first_name_info": "The person booking's first name",
"attendee_last_name_info": "The person booking's last name",
"me": "Me",
"verify_team_tooltip": "Verify your team to enable sending messages to attendees",
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
}
@@ -58,6 +58,9 @@ const getUserAdminTeams = async ({
},
}),
},
orderBy: {
orgUsers: { _count: "desc" },
},
});
if (teams.length && getUserInfo) {
@@ -76,7 +79,7 @@ const getUserAdminTeams = async ({
if (user) {
const userObject = {
id: user.id,
name: user.name || "Nameless",
name: user.name || "me",
logo: user?.avatar === "" ? null : user?.avatar,
isUser: true,
...(includeCredentials && { credentials: user.credentials }),
+1 -1
View File
@@ -265,7 +265,7 @@ const InstallAppButtonChild = ({
);
}}>
<p className="text-left">
{team.name} {isInstalledTeamOrUser && `(${t("installed")})`}
{t(team.name)} {isInstalledTeamOrUser && `(${t("installed")})`}
</p>
</DropdownItem>
);