Skip to content

Commit 22e00ee

Browse files
make JAF in next step and bigger (#444)
1 parent 76d1b5e commit 22e00ee

3 files changed

Lines changed: 648 additions & 548 deletions

File tree

src/app/(authroutes)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const AuthLayout = async ({ children }: Props) => {
4444

4545
{/* Right side - Form section - Scrollable */}
4646
<div className="flex-1 flex flex-col justify-center px-8 py-12 lg:px-12 xl:px-16 bg-white lg:ml-[560px]">
47-
<div className="sm:mx-auto sm:w-full sm:max-w-lg lg:max-w-xl xl:max-w-2xl">
47+
<div className="sm:mx-auto sm:w-full max-w-none">
4848
<Suspense fallback={<div className="animate-pulse bg-gray-200 h-64 rounded-lg"></div>}>
4949
{children}
5050
</Suspense>

src/components/JAF/JAF.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ function JAF({ mode = "standalone", onSubmit, submitLabel }: JAFProps) {
125125
toast.error("At least one recruiter contact is required");
126126
return;
127127
}
128+
const sanitizedSalaries = (values.salaries || []).map((salary: any) => {
129+
const { hasCpiCriterion, hasHighSchoolCriteria, ...rest } = salary || {};
130+
return rest;
131+
});
132+
128133
const payload: JafDto = {
129134
job: {
130135
seasonId: values.seasonId,
@@ -176,7 +181,7 @@ function JAF({ mode = "standalone", onSubmit, submitLabel }: JAFProps) {
176181
: undefined,
177182
},
178183
},
179-
salaries: values.salaries || [],
184+
salaries: sanitizedSalaries,
180185
};
181186

182187
try {

0 commit comments

Comments
 (0)