Skip to content

Commit b1e4737

Browse files
committed
fix title and description
1 parent 342b264 commit b1e4737

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

apps/web/components/booking/BookingListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function BookingListItem(booking: BookingItemProps) {
295295
if (isBookingInPast) {
296296
editBookingActions.push({
297297
id: "delete_history",
298-
label: t("delete_history_title"),
298+
label: t("delete"),
299299
onClick: () => {
300300
setIsOpenDeleteBookingDialog(true);
301301
},

apps/web/public/static/locales/en/common.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2958,8 +2958,8 @@
29582958
"verify_email": "Verify email",
29592959
"verify_email_change": "Verify email change",
29602960
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑",
2961-
"delete_history_title": "Delete booking history",
2962-
"delete_history_description": "Are you sure you want to delete this from your booking history?",
2961+
"delete_booking_title": "Delete booking?",
2962+
"delete_booking_description": "Are you sure you want to delete this booking?",
29632963
"unable_to_delete_booking": "Unable to delete booking",
29642964
"booking_delete_successfully": "Booking deleted successfully"
29652965
}

packages/features/bookings/components/dialog/DeleteBookingDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ export const DeleteBookingDialog = (props: IDeleteBookingDialog) => {
3333
<ConfirmationDialogContent
3434
isPending={deleteBookingMutation.isPending}
3535
variety="danger"
36-
title={t("delete_history_title")}
36+
title={t("delete_booking_title")}
3737
confirmBtnText={t("confirm")}
3838
onConfirm={(e) => {
3939
e.preventDefault();
4040
deleteBookingMutation.mutate({ id: bookingId });
4141
}}>
42-
{t("delete_history_description")}
42+
{t("delete_booking_description")}
4343
</ConfirmationDialogContent>
4444
</Dialog>
4545
);

packages/features/bookings/components/dialog/__tests__/DeleteBookingDialog.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ describe("DeleteBookingDialog", () => {
4747

4848
it("renders the dialog when open", () => {
4949
render(<DeleteBookingDialog {...mockProps} />);
50-
expect(screen.getByText("delete_history_title")).toBeInTheDocument();
51-
expect(screen.getByText("delete_history_description")).toBeInTheDocument();
50+
expect(screen.getByText("delete_booking_title")).toBeInTheDocument();
51+
expect(screen.getByText("delete_booking_description")).toBeInTheDocument();
5252
});
5353

5454
it("closes the dialog when cancel is clicked", async () => {

0 commit comments

Comments
 (0)