Merged in feat(SW-2084)-disable-options-modify-my-stay (pull request #1662)
feat(SW-2084) logic to disable Manage stay options * feat(SW-2084) logic to disable Manage stay options * feat(SW-2084) cleanup logic for checks * feat(SW-2084) check if date has passed * feat(SW-2084) change to datetimeIsInThePast Approved-by: Niclas Edenvin
This commit is contained in:
@@ -15,6 +15,8 @@ import CancelStay from "./ActionPanel/Actions/CancelStay"
|
||||
import ModifyStay from "./ActionPanel/Actions/ModifyStay"
|
||||
import ActionPanel from "./ActionPanel"
|
||||
|
||||
import styles from "./manangeStay.module.css"
|
||||
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
import { type CreditCard } from "@/types/user"
|
||||
|
||||
@@ -73,9 +75,15 @@ export default function ManageStay({
|
||||
onClick={() => setIsOpen(true)}
|
||||
size="small"
|
||||
disabled={allRoomsCancelled}
|
||||
className={styles.manageStayButton}
|
||||
>
|
||||
{intl.formatMessage({ id: "Manage stay" })}
|
||||
<MaterialIcon icon="keyboard_arrow_down" color="Icon/Inverted" />
|
||||
<MaterialIcon
|
||||
icon="keyboard_arrow_down"
|
||||
color={
|
||||
allRoomsCancelled ? "Icon/Interactive/Disabled" : "Icon/Inverted"
|
||||
}
|
||||
/>
|
||||
</Button>
|
||||
{isOpen && (
|
||||
<Modal
|
||||
|
||||
Reference in New Issue
Block a user