chore: remove global organization id state (#14135)

This commit is contained in:
Kayla Washburn-Love
2024-08-05 10:33:58 -06:00
committed by GitHub
parent f9b660e573
commit efbd6257e4
29 changed files with 177 additions and 151 deletions

View File

@ -65,7 +65,6 @@ export interface CreateUserFormProps {
onCancel: () => void;
error?: unknown;
isLoading: boolean;
organizationId: string;
authMethods?: TypesGen.AuthMethods;
}
@ -86,7 +85,7 @@ const validationSchema = Yup.object({
export const CreateUserForm: FC<
React.PropsWithChildren<CreateUserFormProps>
> = ({ onSubmit, onCancel, error, isLoading, organizationId, authMethods }) => {
> = ({ onSubmit, onCancel, error, isLoading, authMethods }) => {
const form: FormikContextType<TypesGen.CreateUserRequest> =
useFormik<TypesGen.CreateUserRequest>({
initialValues: {
@ -94,7 +93,7 @@ export const CreateUserForm: FC<
password: "",
username: "",
name: "",
organization_id: organizationId,
organization_id: "00000000-0000-0000-0000-000000000000",
disable_login: false,
login_type: "",
},