Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed May 14, 2023
1 parent a27befb commit 0003015
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
43 changes: 28 additions & 15 deletions web/signed-rsvp/src/pages/e/[event_id]/confirmation.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { motion } from 'framer-motion';
import { useRouter } from 'next/router';
import { useEffect } from 'react';
import { FiCopy } from 'react-icons/fi';
import { useAccount, useEnsAvatar, useEnsName } from 'wagmi';

import { DisconnectButton } from '@/components/DisconnectButton';
Expand Down Expand Up @@ -94,21 +95,33 @@ const ConfirmationPage = () => {
<p className="text-sm text-gray-500 font-semibold mt-1 mr-28">
{event.date}
</p>
<p className="text-sm text-gray-500 font-light mt-6 mr-28">
{event.post_text}
<div>
RSVP provided by{' '}
<a
className="underline"
href="https://signature.ceo"
target="_blank"
rel="noreferrer"
>
{' '}
signature.ceo
</a>
</div>
</p>
<div className="flex gap-2 items-center mt-6 mr-28">
<p className="text-sm text-gray-500 font-light w-fit">
{event.post_text}
<div>
RSVP provided by{' '}
<a
className="underline"
href="https://signature.ceo"
target="_blank"
rel="noreferrer"
>
{' '}
signature.ceo
</a>
</div>
</p>
<a
href={
'https://signature.ceo/' +
localStorage.getItem('receipt-' + event.id)
}
target="_blank"
rel="noreferrer"
>
<FiCopy />
</a>
</div>
<div className="text-xs text-gray-500 font-light mt-8 mr-28">
{ensName || address}
<img
Expand Down
4 changes: 4 additions & 0 deletions web/signed-rsvp/src/pages/e/[event_id]/rsvp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ const RSVP = () => {
return;
}

const { id } = await d.json();

localStorage.setItem(`receipt-${event.id}`, id);

router.push('/e/' + event.id + '/confirmation');
},
});
Expand Down

0 comments on commit 0003015

Please sign in to comment.