mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +02:00
fix token type description (#3158)
This commit is contained in:
parent
7996f12974
commit
249856e3a1
@ -67,7 +67,7 @@ export const ApiTokenTable = ({
|
||||
Cell: ({
|
||||
value,
|
||||
}: {
|
||||
value: 'admin' | 'client' | 'frontend';
|
||||
value: keyof typeof tokenDescriptions;
|
||||
}) => (
|
||||
<HighlightCell
|
||||
value={tokenDescriptions[value].label}
|
||||
@ -260,7 +260,7 @@ export const ApiTokenTable = ({
|
||||
</PageContent>
|
||||
);
|
||||
};
|
||||
|
||||
//TODO fix me - remove duplicate keys
|
||||
const tokenDescriptions = {
|
||||
client: {
|
||||
label: 'CLIENT',
|
||||
@ -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',
|
||||
},
|
||||
};
|
||||
|
@ -22,7 +22,6 @@ export const ProjectsList: VFC<IProjectsListProps> = ({
|
||||
project,
|
||||
}) => {
|
||||
const { searchQuery } = useSearchHighlightContext();
|
||||
|
||||
let fields: string[] =
|
||||
projects && Array.isArray(projects)
|
||||
? projects
|
||||
|
Loading…
Reference in New Issue
Block a user