Skip to content

Commit

Permalink
finish fixing styling
Browse files Browse the repository at this point in the history
  • Loading branch information
DonKoko committed Jul 26, 2024
1 parent 6a217e5 commit d4f92be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/components/shared/user-badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const UserBadge = ({
imgClassName,
name,
}: UserBadgeProps) => (
<div className="max-w-[250px]">
<div className="h-6 max-w-[250px]">
<span
className={tw(
"ml-1 inline-flex w-max items-center rounded-2xl bg-gray-100 px-2 py-0.5",
Expand Down
8 changes: 3 additions & 5 deletions app/routes/_layout+/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const DATE_FORMAT_OPTIONS = {
} as const;

// Calendar Component
const Calendar = () => {
export default function Calendar() {
const { title } = useLoaderData<typeof loader>();
const { isMd } = useViewportHeight();
const [startingDay, endingDay] = getWeekStartingAndEndingDates(new Date());
Expand Down Expand Up @@ -263,9 +263,7 @@ const Calendar = () => {
</div>
</>
);
};

export default Calendar;
}

const renderEventCard = (args: EventContentArg) => {
const event = args.event;
Expand Down Expand Up @@ -297,7 +295,7 @@ const renderEventCard = (args: EventContentArg) => {
<DateS date={booking.end} options={DATE_FORMAT_OPTIONS} />
</div>

<p className="mb-3 text-sm font-medium">{booking.name}</p>
<div className="mb-3 mt-1 text-sm font-medium">{booking.name}</div>

<div className="mb-3 flex items-center gap-2">
<Badge color={bookingStatusColorMap[booking.status]}>
Expand Down

0 comments on commit d4f92be

Please sign in to comment.