working on clerk notification

This commit is contained in:
nospeedlimitindonesia
2024-07-28 09:44:29 +00:00
parent ae79c9fc5a
commit 93df0458e6
7 changed files with 45 additions and 36 deletions

View File

@@ -9,7 +9,7 @@ import { getCartDetails } from "../helpers/itemHelper.js";
import { getItemsByCafeId } from "../helpers/cartHelpers"; // Import getItemsByCafeId
import Modal from "../components/Modal"; // Import the reusable Modal component
export default function Cart({ sendParam, totalItemsCount }) {
export default function Cart({ sendParam, totalItemsCount, deviceType }) {
const { shopId } = useParams();
sendParam(shopId);
@@ -166,17 +166,18 @@ export default function Cart({ sendParam, totalItemsCount }) {
itemList={itemType.itemList}
/>
))}
<div className={styles.EmailContainer}>
<label htmlFor="email">Email:</label>
<input
type="email"
id="email"
value={email}
onChange={handleEmailChange}
className={styles.EmailInput}
/>
</div>
{deviceType != "guestDevice" && (
<div className={styles.EmailContainer}>
<label htmlFor="email">Email:</label>
<input
type="email"
id="email"
value={email}
onChange={handleEmailChange}
className={styles.EmailInput}
/>
</div>
)}
<div className={styles.OrderTypeContainer}>
<span htmlFor="orderType">Order Type:</span>
<select