Fix/STAY-133 * fix: Add static summary buttons row on add ancillary flow * fix: refactor handling of modals * fix: refactor file structure for add ancillary flow * Merged in chore/replace-deprecated-body (pull request #3300) Replace deprecated <Body> with <Typography> * chore: replace deprecated body component * refactor: replace Body component with Typography across various components * merge Approved-by: Bianca Widstam Approved-by: Matilda Landström Approved-by: Bianca Widstam Approved-by: Matilda Landström
13 lines
365 B
TypeScript
13 lines
365 B
TypeScript
import { useMediaQuery } from "usehooks-ts"
|
|
|
|
import Desktop from "./Desktop"
|
|
import Mobile from "./Mobile"
|
|
|
|
import type { StepsProps } from "@/types/components/myPages/myStay/ancillaries"
|
|
|
|
export default function Steps(props: StepsProps) {
|
|
const isMobile = useMediaQuery("(max-width: 767px)")
|
|
|
|
return isMobile ? <Mobile {...props} /> : <Desktop {...props} />
|
|
}
|