Skip to content

Commit

Permalink
🚧 test
Browse files Browse the repository at this point in the history
  • Loading branch information
ROTO0504 committed Oct 31, 2024
1 parent 90955f5 commit 6725253
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/routes/company-form/$uuid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,23 @@ export const Route = createFileRoute("/company-form/$uuid")({
description_5000: "",
});

let triggerDisable = true;
if (
formData.description !== "" &&
formData.deadline !== "" &&
formData.location !== "" &&
formData.motivation !== "" &&
formData.amountOfMoney !== 0 &&
formData.title_1000 !== "" &&
formData.title_3000 !== "" &&
formData.title_5000 !== "" &&
formData.description_1000 !== "" &&
formData.description_3000 !== "" &&
formData.description_5000 !== ""
) {
triggerDisable = false;
}

const onSubmit: SubmitHandler<CompanyForm> = (temp: CompanyForm) => {
setFormData(temp);
console.log(temp);
Expand Down Expand Up @@ -736,7 +753,10 @@ export const Route = createFileRoute("/company-form/$uuid")({
<p.div py={20}>
<Dialog.Root>
<p.div display="flex" justifyContent="center">
<Dialog.Trigger className={dialog.trigger}>
<Dialog.Trigger
className={dialog.trigger}
disabled={triggerDisable}
>
<HStack
_hover={{
transform: "scale(1.05)",
Expand Down

0 comments on commit 6725253

Please sign in to comment.