forked from phoenix/litellm-mirror
(feat) ui - conditionally show form based on userRole
This commit is contained in:
parent
59790c6cef
commit
6de6774509
2 changed files with 54 additions and 37 deletions
|
@ -31,6 +31,8 @@ const UserDashboard = () => {
|
|||
switch (userRole.toLowerCase()) {
|
||||
case "app_owner":
|
||||
return "App Owner";
|
||||
case "demo_app_owner":
|
||||
return "AppOwner";
|
||||
case "admin":
|
||||
return "Admin";
|
||||
case "app_user":
|
||||
|
@ -104,12 +106,14 @@ const UserDashboard = () => {
|
|||
<Col numColSpan={1}>
|
||||
<ViewKeyTable
|
||||
userID={userID}
|
||||
userRole={userRole}
|
||||
accessToken={accessToken}
|
||||
data={data}
|
||||
setData={setData}
|
||||
/>
|
||||
<CreateKey
|
||||
userID={userID}
|
||||
userRole={userRole}
|
||||
accessToken={accessToken}
|
||||
data={data}
|
||||
setData={setData}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue