Skip to content

Commit

Permalink
feat(UI-1107): invite user to organization - rebase leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
RonenMars committed Jan 8, 2025
1 parent 778b6ca commit e4fe793
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/components/organisms/settings/organization/addOrganization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,13 @@ export const AddOrganization = () => {

const onSubmit = async (values: FormValues) => {
setCreatingOrganization(true);
<<<<<<< HEAD
const error = await createOrganization(values.name);
=======
const error = await OrganizationsService.create(values.name);
>>>>>>> bedaaf92 (feat(UI-1167): organizations fetching and management)
if (error) {
addToast({
message: tErrors("errorCreateNewOrganization"),
type: "error",
});
<<<<<<< HEAD
setCreatingOrganization(false);
=======
>>>>>>> bedaaf92 (feat(UI-1167): organizations fetching and management)

return;
}
Expand All @@ -79,14 +72,10 @@ export const AddOrganization = () => {
isError={!!errors.name}
isRequired
label={t("form.organizationName")}
<<<<<<< HEAD
{...register("name", {
required: t("nameRequired"),
validate: validateOrganizationName,
})}
=======
{...register("name")}
>>>>>>> bedaaf92 (feat(UI-1167): organizations fetching and management)
/>

<ErrorMessage>{errors?.name?.message as string}</ErrorMessage>
Expand Down

0 comments on commit e4fe793

Please sign in to comment.