
* Init dev * UI changes for recurring event + prisma * Revisiting schema + changes WIP * UI done, BE WIP * Feature completion * Unused query param removed * Invalid comment removed * Removed unused translation * Update apps/web/public/static/locales/en/common.json Thanks! Co-authored-by: Peer Richelsen <peeroke@gmail.com> * Success page changes * More progress * Email text tweaks + test + seed * Tweaking emails + Cal Apps support WIP * No app integration for now Final email and pages tweaks to avoid recurring info showed * Missing comment for clarity * Yet again, comment * Last minute fix * Missing tooltip for upcoming bookings * Fixing seed * Fixing import * Increasing timeout for e2e * Fixing any * Apply suggestions from code review Co-authored-by: Omar López <zomars@me.com> * Update apps/web/pages/d/[link]/book.tsx Co-authored-by: Omar López <zomars@me.com> * Code improvements * More code improvements * Reverting back number input arrows * Update BookingPage.tsx * Update BookingPage.tsx * Adds fallback for sendOrganizerPaymentRefundFailedEmail * Type overkill * Type fixes * Type fixes * Nitpicks * Update success.tsx * Update success.tsx * Update success.tsx * Fixing types Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Omar López <zomars@me.com>
34 lines
665 B
TypeScript
34 lines
665 B
TypeScript
import React from "react";
|
|
|
|
import { useLocale } from "@lib/hooks/useLocale";
|
|
|
|
import NavTabs from "./NavTabs";
|
|
|
|
export default function BookingsShell({ children }: { children: React.ReactNode }) {
|
|
const { t } = useLocale();
|
|
const tabs = [
|
|
{
|
|
name: t("upcoming"),
|
|
href: "/bookings/upcoming",
|
|
},
|
|
{
|
|
name: t("recurring"),
|
|
href: "/bookings/recurring",
|
|
},
|
|
{
|
|
name: t("past"),
|
|
href: "/bookings/past",
|
|
},
|
|
{
|
|
name: t("cancelled"),
|
|
href: "/bookings/cancelled",
|
|
},
|
|
];
|
|
|
|
return (
|
|
<>
|
|
<NavTabs tabs={tabs} linkProps={{ shallow: true }} />
|
|
<main>{children}</main>
|
|
</>
|
|
);
|
|
}
|