Merged in fix/BOOK-343-disable-clear-preferences (pull request #3369)

fix(BOOK-343): disable clear if no active preferences

* fix(BOOK-343): disable clear if no active preferences


Approved-by: Bianca Widstam
This commit is contained in:
Matilda Landström
2025-12-23 09:04:35 +00:00
parent 57d0e1b27b
commit a061808b2a

View File

@@ -64,7 +64,12 @@ export function RoomPackagesForm({
</Button> </Button>
</Typography> </Typography>
<Typography variant="Body/Supporting text (caption)/smBold"> <Typography variant="Body/Supporting text (caption)/smBold">
<Button onPress={clearSelectedPackages} size="sm" variant="Text"> <Button
onPress={clearSelectedPackages}
size="sm"
variant="Text"
isDisabled={!selectedPackages.length}
>
{intl.formatMessage({ {intl.formatMessage({
id: "common.clear", id: "common.clear",
defaultMessage: "Clear", defaultMessage: "Clear",