Skip to content

Commit

Permalink
fix token type description (#3158)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-unleash committed Feb 20, 2023
1 parent 7996f12 commit 249856e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Expand Up @@ -67,7 +67,7 @@ export const ApiTokenTable = ({
Cell: ({
value,
}: {
value: 'admin' | 'client' | 'frontend';
value: keyof typeof tokenDescriptions;
}) => (
<HighlightCell
value={tokenDescriptions[value].label}
Expand Down Expand Up @@ -260,7 +260,7 @@ export const ApiTokenTable = ({
</PageContent>
);
};

//TODO fix me - remove duplicate keys
const tokenDescriptions = {
client: {
label: 'CLIENT',
Expand All @@ -274,4 +274,16 @@ const tokenDescriptions = {
label: 'ADMIN',
title: 'Full access for managing Unleash',
},
CLiENT: {
label: 'CLIENT',
title: 'Connect server-side SDK or Unleash Proxy',
},
FRONTEND: {
label: 'FRONTEND',
title: 'Connect web and mobile SDK',
},
ADMIN: {
label: 'ADMIN',
title: 'Full access for managing Unleash',
},
};
Expand Up @@ -22,7 +22,6 @@ export const ProjectsList: VFC<IProjectsListProps> = ({
project,
}) => {
const { searchQuery } = useSearchHighlightContext();

let fields: string[] =
projects && Array.isArray(projects)
? projects
Expand Down

0 comments on commit 249856e

Please sign in to comment.