feat(SW-70): Move RoomCard types to /types

This commit is contained in:
Niclas Edenvin
2024-07-09 13:28:44 +02:00
parent 722bab97ad
commit c5473f477e
2 changed files with 4 additions and 4 deletions

View File

@@ -3,11 +3,11 @@ import Caption from "@/components/TempDesignSystem/Text/Caption"
import Title from "@/components/TempDesignSystem/Text/Title"
import { getIntl } from "@/i18n"
import { RoomProps } from "./roomCard"
import styles from "./roomCard.module.css"
export default async function RoomCard({ room }: RoomProps) {
import { RoomCardProps } from "@/types/components/hotelReservation/selectRate/roomCard"
export default async function RoomCard({ room }: RoomCardProps) {
const { formatMessage } = await getIntl()
return (
<div className={styles.card}>

View File

@@ -1,3 +1,3 @@
import { Rate } from "@/server/routers/hotels/output"
export type RoomProps = { room: Rate }
export type RoomCardProps = { room: Rate }