-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from pedrolivaresanchez/feat/incluir-solicitu…
…des-ser-voluntario Incluir en "mis solicitudes" aquellas en las que te has apuntado como voluntario
- Loading branch information
Showing
20 changed files
with
128 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { PageProps } from '.next/types/app/page'; | ||
import RequestHelp from '@/components/RequestHelp'; | ||
import Unauthorized from '@/components/Unauthorized'; | ||
import { helpRequestService } from '@/lib/service'; | ||
import { createClient } from '@/lib/supabase/server'; | ||
|
||
export default async function EditarSolicitud({ params }: PageProps) { | ||
const { id } = await params; | ||
const supabase = await createClient(); | ||
const { data: session } = await supabase.auth.getUser(); | ||
if (session.user === null) { | ||
return <Unauthorized />; | ||
} | ||
const request = await helpRequestService.getOne(Number(id)); | ||
|
||
return ( | ||
<RequestHelp | ||
title="Editar solicitud de ayuda" | ||
submitType="edit" | ||
data={request} | ||
id={id} | ||
button={['Editar solicitud', 'Editando solicitud...']} | ||
redirect="/solicitudes" | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.