-
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.
- Loading branch information
Showing
29 changed files
with
177 additions
and
595 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,25 @@ | ||
import OfferHelp from '@/components/OfferHelp'; | ||
import Unauthorized from '@/components/Unauthorized'; | ||
import { createClient } from '@/lib/supabase/server'; | ||
import { helpRequestService } from '@/lib/service'; | ||
|
||
export default async function EditarSolicitud({ params }: { params: Promise<{ id: string }> }) { | ||
const { id } = await params; | ||
const supabase = await createClient(); | ||
const { data: session } = await supabase.auth.getUser(); | ||
if (session.user === null) { | ||
return <Unauthorized />; | ||
} | ||
const numberId = Number(id); | ||
const request = await helpRequestService.getOne(numberId); | ||
return ( | ||
<OfferHelp | ||
title="Editar solicitud de ayuda" | ||
submitType="edit" | ||
data={request} | ||
id={numberId} | ||
button={['Editar oferta', 'Editando oferta...']} | ||
redirect="/ofertas" | ||
/> | ||
); | ||
} |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...p/personas-animales-desaparecidos/page.js → .../personas-animales-desaparecidos/page.tsx
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.