-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from awoimbee/display-name-fallback-on-name
fallback on name is displayName is emtpy
- Loading branch information
Showing
7 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,7 @@ | |
"internalApp": "Internal", | ||
"inUse": "In use", | ||
"insufficient-permissions": "Insufficient permissions to perform action.", | ||
"invitation-email-placeholder": "for example, Thomas, [email protected]", | ||
"invitation-email-placeholder": "[email protected]", | ||
"invitation-instructions-description": "Add a new member to the organization by entering their email and assigning them a role within the organization. An email will be sent to them with instructions on how to join.", | ||
"invitation-missing-permission-title": "You lack the 'manage-invitations' role.", | ||
"invitation-missing-permission-body": "Speak to an admin in order to be granted this role.", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,7 @@ | |
"internalApp": "Interne", | ||
"inUse": "En cours d'utilisation", | ||
"insufficient-permissions": "Permissions insuffisante pour réaliser cette action.", | ||
"invitation-email-placeholder": "par exemple, Thomas, [email protected]", | ||
"invitation-email-placeholder": "[email protected]", | ||
"invitation-instructions-description": "Ajoutez un nouveau membre à l'organisation en entrant son email et en lui attribuant un rôle au sein de l'organisation. Un email leur sera envoyé avec des instructions pour rejoindre.", | ||
"invitation-missing-permission-title": "Vous ne pouvez pas gérer les invitations.", | ||
"invitation-missing-permission-body": "Contactez un administrateur pour obtenir les droits nécessaires.", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { useTranslation } from "react-i18next"; | ||
import { OrganizationRepresentation } from "store/apis/orgs"; | ||
|
||
function useOrgDisplayName(org?: OrganizationRepresentation) { | ||
const { t } = useTranslation(); | ||
const orgName = org?.displayName || org?.name || t("organization"); | ||
|
||
return { orgName }; | ||
} | ||
|
||
export default useOrgDisplayName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters