feat(SW-350): Fix PR comments

This commit is contained in:
Pontus Dreij
2024-10-07 10:51:52 +02:00
parent 6338c77a0d
commit e776b1552a
12 changed files with 16 additions and 22 deletions

View File

@@ -13,5 +13,5 @@ export default async function BookingWidgetPage() {
return null return null
} }
return <BookingWidget type="full" /> return <BookingWidget />
} }

View File

@@ -2,7 +2,6 @@ import "@/app/globals.css"
import "@scandic-hotels/design-system/style.css" import "@scandic-hotels/design-system/style.css"
import Script from "next/script" import Script from "next/script"
import React from "react"
import { env } from "@/env/server" import { env } from "@/env/server"
import TrpcProvider from "@/lib/trpc/Provider" import TrpcProvider from "@/lib/trpc/Provider"

View File

@@ -65,7 +65,7 @@ export default async function RootLayout({
<SkipToMainContent /> <SkipToMainContent />
<ServerIntlProvider intl={{ defaultLocale, locale, messages }}> <ServerIntlProvider intl={{ defaultLocale, locale, messages }}>
{header} {header}
<BookingWidget type="full" /> <BookingWidget />
{children} {children}
<Footer /> <Footer />
<TokenRefresher /> <TokenRefresher />

View File

@@ -42,7 +42,7 @@
box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.05); box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.05);
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 1; z-index: 10000;
background-color: var(--Base-Surface-Primary-light-Normal); background-color: var(--Base-Surface-Primary-light-Normal);
} }

View File

@@ -1,5 +1,5 @@
"use client" "use client"
import React from "react"
import { DayPicker } from "react-day-picker" import { DayPicker } from "react-day-picker"
import { useIntl } from "react-intl" import { useIntl } from "react-intl"

View File

@@ -1,6 +1,3 @@
.vouchers {
display: block;
}
.options { .options {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -16,7 +13,7 @@
} }
.vouchers { .vouchers {
width: 100%; width: 100%;
display: block;
padding: var(--Spacing-x1) var(--Spacing-x-one-and-half); padding: var(--Spacing-x1) var(--Spacing-x-one-and-half);
border-radius: var(--Corner-radius-Small); border-radius: var(--Corner-radius-Small);
} }
@@ -27,8 +24,8 @@
} }
.checkbox { .checkbox {
width: var(--Spacing-x3); width: 24px;
height: var(--Spacing-x3); height: 24px;
} }
.checkboxVoucher { .checkboxVoucher {

View File

@@ -8,8 +8,8 @@
} }
.checkbox { .checkbox {
width: var(--Spacing-x3); width: 24px;
height: var(--Spacing-x3); height: 24px;
} }
.icon, .icon,
.voucherRow { .voucherRow {
@@ -71,7 +71,7 @@
.inputContainer input[type="text"] { .inputContainer input[type="text"] {
border: none; border: none;
height: var(--Spacing-x3); height: 24px;
} }
.rooms, .rooms,
@@ -104,8 +104,8 @@
} }
.input .buttonContainer .button { .input .buttonContainer .button {
padding: var(--Spacing-x1); padding: var(--Spacing-x1);
width: var(--Spacing-x6); width: 48px;
height: var(--Spacing-x6); height: 48px;
} }
.buttonText { .buttonText {
display: none; display: none;

View File

@@ -1,5 +1,4 @@
"use client" "use client"
import React from "react"
import { useWatch } from "react-hook-form" import { useWatch } from "react-hook-form"
import { useIntl } from "react-intl" import { useIntl } from "react-intl"

View File

@@ -10,6 +10,6 @@ export const bookingWidgetVariants = cva(styles.section, {
}, },
}, },
defaultVariants: { defaultVariants: {
type: "default", type: "full",
}, },
}) })

View File

@@ -1,5 +1,3 @@
import React from "react"
import { ChevronRightIcon } from "@/components/Icons" import { ChevronRightIcon } from "@/components/Icons"
import Image from "@/components/Image" import Image from "@/components/Image"
import Button from "@/components/TempDesignSystem/Button" import Button from "@/components/TempDesignSystem/Button"

View File

@@ -1,3 +1,5 @@
import { PropsWithChildren } from "react"
import Caption from "@/components/TempDesignSystem/Text/Caption" import Caption from "@/components/TempDesignSystem/Text/Caption"
import { tooltipVariants } from "./variants" import { tooltipVariants } from "./variants"
@@ -12,7 +14,7 @@ export function Tooltip<P extends TooltipPosition>({
position, position,
arrow, arrow,
children, children,
}: TooltipProps<P>) { }: PropsWithChildren<TooltipProps<P>>) {
const className = tooltipVariants({ position, arrow }) const className = tooltipVariants({ position, arrow })
return ( return (
<div className={styles.tooltipContainer} role="tooltip" aria-label={text}> <div className={styles.tooltipContainer} role="tooltip" aria-label={text}>

View File

@@ -18,5 +18,4 @@ export interface TooltipProps<P extends TooltipPosition = TooltipPosition> {
text?: string text?: string
position: P position: P
arrow: ValidArrow<P> arrow: ValidArrow<P>
children: React.ReactNode
} }