Merged in feat/ancillaries-ui-fixes (pull request #3383)
feat: update ancillaries flow ui * feat: update ancillaries flow ui Approved-by: Matilda Haneling
This commit is contained in:
@@ -12,11 +12,12 @@
|
|||||||
|
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: var(--Space-x1) var(--Space-x2) var(--Space-x2);
|
padding: var(--Space-x2) var(--Space-x2) var(--Space-x3) var(--Space-x2);
|
||||||
|
border-top: 1px solid var(--Border-Default);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 768px) {
|
@media screen and (min-width: 768px) {
|
||||||
.modalScrollable {
|
.modalScrollable {
|
||||||
padding: var(--Space-x1) var(--Space-x3) var(--Space-x3);
|
padding: var(--Space-x3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default function Summary({ onSubmit }: { onSubmit: () => void }) {
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
trigger,
|
trigger,
|
||||||
formState: { isSubmitting, errors },
|
formState: { isSubmitting },
|
||||||
} = useFormContext()
|
} = useFormContext()
|
||||||
|
|
||||||
const quantity = useWatch({ name: "quantity" }) as number
|
const quantity = useWatch({ name: "quantity" }) as number
|
||||||
@@ -222,7 +222,7 @@ export default function Summary({ onSubmit }: { onSubmit: () => void }) {
|
|||||||
isDisabled={isSubmitting}
|
isDisabled={isSubmitting}
|
||||||
isPending={isSubmitting}
|
isPending={isSubmitting}
|
||||||
onPress={handleNextStep}
|
onPress={handleNextStep}
|
||||||
variant={isSingleItem || isConfirmation ? "Primary" : "Secondary"}
|
variant="Primary"
|
||||||
>
|
>
|
||||||
{buttonLabel()}
|
{buttonLabel()}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import Packages from "./Packages"
|
|||||||
import styles from "./room.module.css"
|
import styles from "./room.module.css"
|
||||||
|
|
||||||
import type { SafeUser } from "@/types/user"
|
import type { SafeUser } from "@/types/user"
|
||||||
|
import { cx } from "class-variance-authority"
|
||||||
|
|
||||||
interface RoomProps {
|
interface RoomProps {
|
||||||
user: SafeUser
|
user: SafeUser
|
||||||
@@ -56,7 +57,9 @@ export default function SingleRoom({ user }: RoomProps) {
|
|||||||
<Header user={user} />
|
<Header user={user} />
|
||||||
<div className={styles.booking}>
|
<div className={styles.booking}>
|
||||||
<div
|
<div
|
||||||
className={`${styles.content} ${isCancelled ? styles.cancelled : ""}`}
|
className={cx(styles.content, {
|
||||||
|
[styles.cancelled]: isCancelled,
|
||||||
|
})}
|
||||||
>
|
>
|
||||||
<Packages />
|
<Packages />
|
||||||
<Img />
|
<Img />
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import { notFound } from "next/navigation"
|
import { notFound } from "next/navigation"
|
||||||
import { use, useRef } from "react"
|
import { use, useRef } from "react"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|||||||
@@ -231,7 +231,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.emphasis {
|
&.emphasis {
|
||||||
color: inherit;
|
color: var(--Component-Button-Muted-On-fill-Default);
|
||||||
|
|
||||||
&[data-disabled] {
|
&[data-disabled] {
|
||||||
background-color: var(--Component-Button-Muted-Fill-Disabled-inverted);
|
background-color: var(--Component-Button-Muted-Fill-Disabled-inverted);
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import {
|
|||||||
} from 'react-aria-components'
|
} from 'react-aria-components'
|
||||||
import { useIntl } from 'react-intl'
|
import { useIntl } from 'react-intl'
|
||||||
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type AnimationState,
|
type AnimationState,
|
||||||
AnimationStateEnum,
|
AnimationStateEnum,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: var(--Space-x2) var(--Space-x7) var(--Space-x2) var(--Space-x2);
|
padding: var(--Space-x2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
@@ -82,15 +82,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
padding: var(--Space-x3) var(--Space-x7) var(--Space-x3) var(--Space-x3);
|
padding: var(--Space-x2) var(--Space-x2) var(--Space-x15) var(--Space-x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.contentWithoutActions {
|
.contentWithoutActions {
|
||||||
padding: 0 var(--Space-x3) var(--Space-x4);
|
padding: 0 var(--Space-x3) var(--Space-x4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.close {
|
|
||||||
top: var(--Space-x2);
|
|
||||||
right: var(--Space-x2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user