Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DonKoko committed Jul 24, 2024
2 parents 97e85d2 + 8441842 commit c958eb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/components/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function Th({
className,
colSpan,
}: {
children: React.ReactNode;
children?: React.ReactNode;
className?: string;
colSpan?: number;
}) {
Expand Down
11 changes: 6 additions & 5 deletions app/routes/_layout+/bookings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,9 @@ export default function BookingsIndexPage({
className="overflow-x-visible md:overflow-x-auto"
headerChildren={
<>
<Th className="hidden md:table-cell" />
<Th className="hidden md:table-cell">Description</Th>
<Th className="hidden md:table-cell"> </Th>

<Th className="hidden md:table-cell">From</Th>
<Th className="hidden md:table-cell">To</Th>
<Th className="hidden md:table-cell">Custodian</Th>
Expand Down Expand Up @@ -296,10 +297,6 @@ const ListAssetContent = ({
</div>
</Td>

<Td className="hidden md:table-cell">
{item.description ? <LineBreakText text={item.description} /> : null}
</Td>

{/**
* Optional label when the booking includes assets that are either:
* 1. Marked as not available for boooking
Expand All @@ -318,6 +315,10 @@ const ListAssetContent = ({
) : null}
</Td>

<Td className="hidden md:table-cell">
{item.description ? <LineBreakText text={item.description} /> : null}
</Td>

{/* From */}
<Td className="hidden md:table-cell">
{item.displayFrom ? (
Expand Down

0 comments on commit c958eb7

Please sign in to comment.