- The application
-
{` ${resp?.client_description} (${resp?.client_id}) `}
- is requesting the following permissions
+
+ {resp !== undefined && resp.client_description !== "" ? (
+
+
+ {resp.client_description}
+
+
+ ) : (
+
+ {resp?.client_id}
+
+ )}
+
+ {translate("The above application is requesting the following permissions")}:
+
- {resp?.scopes.map((s) => (
-
-
- {showListItemAvatar(s.name)}
-
+ {resp?.scopes.map((scope: string) => (
+
+
+ {scopeNameToAvatar(scope)}
+
))}
@@ -108,7 +146,7 @@ const ConsentView = function (props: Props) {
color="primary"
variant="contained"
>
- Accept
+ {translate("Accept")}
@@ -120,7 +158,7 @@ const ConsentView = function (props: Props) {
color="secondary"
variant="contained"
>
- Deny
+ {translate("Deny")}
@@ -138,6 +176,9 @@ const useStyles = makeStyles((theme) => ({
display: "block",
justifyContent: "center",
},
+ clientDescription: {
+ fontWeight: 600,
+ },
scopesListContainer: {
textAlign: "center",
},