feat(SW-350): Update design for booking widget

This commit is contained in:
Pontus Dreij
2024-10-02 15:51:37 +02:00
parent d58c77493a
commit 04406d3865
6 changed files with 15 additions and 14 deletions
@@ -1,4 +1,4 @@
@media screen and (max-width: 766px) {
@media screen and (max-width: 767px) {
.container {
background-color: var(--UI-Input-Controls-Surface-Normal);
bottom: -100%;
@@ -36,7 +36,7 @@
}
}
@media screen and (min-width: 767px) {
@media screen and (min-width: 768px) {
.container {
display: block;
box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.05);
+2 -6
View File
@@ -2,17 +2,13 @@ import { getLocations } from "@/lib/trpc/memoizedRequests"
import BookingWidgetClient from "./Client"
import type { BookingWidgetType } from "@/types/components/bookingWidget"
import type { BookingWidgetProps } from "@/types/components/bookingWidget"
export function preload() {
void getLocations()
}
export default async function BookingWidget({
type,
}: {
type: BookingWidgetType
}) {
export default async function BookingWidget({ type }: BookingWidgetProps) {
const locations = await getLocations()
if (!locations || "error" in locations) {