feat: enhance event forms with date formatting and registration link updates; add utility for local date formatting
This commit is contained in:
@@ -62,13 +62,15 @@ export default function EventoCard({
|
||||
<div key={cuestionario.id_cuestionario} className="">
|
||||
<Link
|
||||
href={
|
||||
user === 'public'
|
||||
? `/evento/${evento.nombre_evento.split(' ').join('_')}/${evento.id_evento}/${cuestionario.id_cuestionario}`
|
||||
: `/${user}/evento/${evento.id_evento}/${cuestionario.id_cuestionario}`
|
||||
user === 'public'
|
||||
? `/evento/${evento.nombre_evento.split(' ').join('_')}/${
|
||||
evento.id_evento
|
||||
}/${cuestionario.id_cuestionario}`
|
||||
: `/${user}/evento/${evento.id_evento}/${cuestionario.id_cuestionario}`
|
||||
}
|
||||
className="btn mt-2 w-100 btn-outline-primary"
|
||||
>
|
||||
{cuestionario.nombre_form}
|
||||
Regístrate
|
||||
</Link>
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user