E2E and paid bookings fixes
This commit is contained in:
1 parent
f2988870d5
commit
06702aa48a
8 files changed
+16
-6
No files matched your search
@@ -35,6 +35,7 @@ type Props = {
|
||||
eventType: { id: number };
|
||||
user: { username: string | null };
|
||||
location?: string | null;
|
||||
bookingId: number;
|
||||
};
|
||||
|
||||
type States =
|
||||
@@ -86,6 +87,7 @@ export default function PaymentComponent(props: Props) {
|
||||
type: props.eventType.id,
|
||||
user: props.user.username,
|
||||
name,
|
||||
bookingId: props.bookingId,
|
||||
};
|
||||
|
||||
if (props.location) {
|
||||
|
||||
@@ -137,6 +137,7 @@ const PaymentPage: FC<PaymentPageProps> = (props) => {
|
||||
eventType={props.eventType}
|
||||
user={props.user}
|
||||
location={props.booking.location}
|
||||
bookingId={props.booking.id}
|
||||
/>
|
||||
</Elements>
|
||||
)}
|
||||
|
||||
@@ -21,6 +21,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||
bookingId: true,
|
||||
booking: {
|
||||
select: {
|
||||
id: true,
|
||||
description: true,
|
||||
title: true,
|
||||
startTime: true,
|
||||
|
||||
Reference in new issue
Block a user