Update i18nKey path in role-badge component

The change in path of the i18nKey in the role-badge component from `common.roles.${role}` to `common.roles.${role}.label` has been made. This ensures that the correct localization keys are being used in order to display the appropriate labels.
This commit is contained in:
giancarlo
2024-04-20 00:48:20 +08:00
parent 08fc8e6d01
commit 2df48d82d8

View File

@@ -24,7 +24,7 @@ export const RoleBadge: React.FC<{
return (
<Badge className={className}>
<span data-test={'member-role-badge'}>
<Trans i18nKey={`common.roles.${role}`} defaults={role} />
<Trans i18nKey={`common.roles.${role}.label`} defaults={role} />
</span>
</Badge>
);