(feat) ui - conditionally show form based on userRole

This commit is contained in:
ishaan-jaff 2024-02-03 12:50:30 -08:00
parent 59790c6cef
commit 6de6774509
2 changed files with 54 additions and 37 deletions

View file

@ -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}