Skip to content

Commit

Permalink
chore: remove duplicate types
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmueller committed Jul 3, 2024
1 parent 6033712 commit 77f04da
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions bciers/apps/registration/app/components/profile/ProfileForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,11 @@ import { useSession } from "next-auth/react";
import { useRouter } from "next/navigation";
import { RJSFSchema } from "@rjsf/utils";
import FieldTemplate from "@bciers/components/form/fields/FieldTemplate";
import {
UserProfileFormData,
UserProfilePartialFormData,
} from "@bciers/types/form/formData";

export interface UserProfileFormData {
first_name: string;
last_name: string;
position_title: string;
email: string;
phone_number: string;
app_role?: { role_name: string };
}

export interface UserProfilePartialFormData {
first_name?: string;
last_name?: string;
position_title?: string;
email?: string;
phone_number?: string;
app_role?: { role_name: string };
}
export const userSchema: RJSFSchema = {
type: "object",
required: ["first_name", "last_name", "phone_number", "position_title"],
Expand Down

0 comments on commit 77f04da

Please sign in to comment.