misc: addressed eslint issue regarding configurationType

This commit is contained in:
Sheen Capadngan
2024-06-19 22:41:33 +08:00
parent 6a83b58de4
commit 6457c34712
4 changed files with 8 additions and 10 deletions
@@ -31,7 +31,7 @@ export const useUpdateOIDCConfig = () => {
clientId?: string;
clientSecret?: string;
isActive?: boolean;
configurationType: string;
configurationType?: string;
orgSlug: string;
}) => {
const { data } = await apiRequest.patch("/api/v1/sso/oidc/config", {
@@ -25,11 +25,8 @@ enum ConfigurationType {
type Props = {
popUp: UsePopUpState<["addOIDC"]>;
handlePopUpClose: (popUpName: keyof UsePopUpState<["addOIDC", "loadViaDiscoveryURL"]>) => void;
handlePopUpToggle: (
popUpName: keyof UsePopUpState<["addOIDC", "loadViaDiscoveryURL"]>,
state?: boolean
) => void;
handlePopUpClose: (popUpName: keyof UsePopUpState<["addOIDC"]>) => void;
handlePopUpToggle: (popUpName: keyof UsePopUpState<["addOIDC"]>, state?: boolean) => void;
};
const schema = z.object({