Preservar a oportunidade durante o registo e preparacao do perfil

This commit is contained in:
2026-10-30 21:22:40 +02:00
parent f5f5649cfc
commit 86b31f2840
8 changed files with 184 additions and 16 deletions
+5 -3
View File
@@ -32,6 +32,7 @@ export default function Entry({
password_confirmation: '',
portal_version: portal.version,
notice_acknowledged: false,
opportunity_id: null as number | null,
});
const credentials = (form: typeof login, prefix: string) => (
<>
@@ -114,9 +115,10 @@ export default function Entry({
<a
className="inline-block underline"
href="#candidate-login"
onClick={() =>
login.setData('opportunity_id', item.id)
}
onClick={() => {
login.setData('opportunity_id', item.id);
register.setData('opportunity_id', item.id);
}}
>
Entrar para preparar a candidatura
</a>