Vipps Donations #33
|
|
@ -22,23 +22,16 @@ export const handler: Handlers = {
|
||||||
return Response.redirect("/donations-error");
|
return Response.redirect("/donations-error");
|
||||||
}
|
}
|
||||||
|
|
||||||
const validatedAgreement = await storage.writeVippsAgreement({
|
await storage.writeVippsAgreement({
|
||||||
...agreement,
|
...agreement,
|
||||||
validAt: new Date(),
|
validAt: new Date(),
|
||||||
});
|
});
|
||||||
|
|
||||||
return ctx.render({ agreement: validatedAgreement });
|
return ctx.render({});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function ({ data }: PageProps<{
|
export default function ({}: PageProps<unknown>) {
|
||||||
agreement: {
|
|
||||||
status: string;
|
|
||||||
id: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
status: string;
|
|
||||||
}>) {
|
|
||||||
return (
|
return (
|
||||||
<div className="my-16 text-center flex flex-col items-center min-h-screen ">
|
<div className="my-16 text-center flex flex-col items-center min-h-screen ">
|
||||||
<h1 className="text-6xl mb-8">
|
<h1 className="text-6xl mb-8">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue