show sso settings on ui

This commit is contained in:
Ishaan Jaff 2025-03-17 22:00:33 -07:00
parent 7a29c08f7b
commit e35aa444c3
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ import { getModelDisplayName } from "./key_team_helpers/fetch_available_models_t
interface SSOSettingsProps { interface SSOSettingsProps {
accessToken: string | null; accessToken: string | null;
possibleUIRoles?: Record<string, Record<string, string>> | null; possibleUIRoles?: Record<string, Record<string, string>> | null;
userID?: string;
} }
const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles }) => { const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles }) => {
@ -72,7 +73,7 @@ const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles
}; };
const handleTextInputChange = (key: string, value: any) => { const handleTextInputChange = (key: string, value: any) => {
setEditedValues(prev => ({ setEditedValues((prev: Record<string, any>) => ({
...prev, ...prev,
[key]: value [key]: value
})); }));

View file

@ -348,7 +348,7 @@ const ViewUserDashboard: React.FC<ViewUserDashboardProps> = ({
</TabPanel> </TabPanel>
<TabPanel> <TabPanel>
<SSOSettings accessToken={accessToken} possibleUIRoles={possibleUIRoles} /> <SSOSettings accessToken={accessToken} possibleUIRoles={possibleUIRoles} userID={userID}/>
</TabPanel> </TabPanel>
</TabPanels> </TabPanels>
</TabGroup> </TabGroup>