minor changes to booking page and navtabs (#832)

This commit is contained in:
Peer Richelsen authored and GitHub committed 2021-09-30 20:59:34 +01:00
1 parent c80992aa1c
commit e33962686e
6 files changed
+49 -49

No files matched your search

+7 -8
View File
@@ -1,6 +1,8 @@
import React from "react";
import NavTabs from "./NavTabs";
export default function BookingsShell(props) {
export default function BookingsShell({ children }: { children: React.ReactNode }) {
const tabs = [
{
name: "Upcoming",
@@ -17,12 +19,9 @@ export default function BookingsShell(props) {
];
return (
<div>
<div className="sm:mx-auto">
<NavTabs tabs={tabs} linkProps={{ shallow: true }} />
<hr />
</div>
<main className="max-w-4xl">{props.children}</main>
</div>
<>
<NavTabs tabs={tabs} linkProps={{ shallow: true }} />
<main>{children}</main>
</>
);
}