fixes
This commit is contained in:
@@ -450,7 +450,7 @@ export default function OrderPage() {
|
||||
)}
|
||||
</Card>
|
||||
|
||||
<Ads2 />
|
||||
{/* <Ads2 /> */}
|
||||
|
||||
{/* <ProInputCard
|
||||
title={
|
||||
@@ -506,7 +506,7 @@ export default function OrderPage() {
|
||||
<PaymentDetails order={orderDetails?.order} />
|
||||
|
||||
{/* inviteToBill */}
|
||||
{!hasClosedStatus && (
|
||||
{/* {!hasClosedStatus && (
|
||||
<ProInputCard
|
||||
title={
|
||||
<>
|
||||
@@ -622,7 +622,7 @@ export default function OrderPage() {
|
||||
</ProText>
|
||||
</Button>
|
||||
</ProInputCard>
|
||||
)}
|
||||
)} */}
|
||||
|
||||
<QRBottomSheet isOpen={isOpen} onClose={() => setIsOpen(false)} />
|
||||
|
||||
@@ -671,25 +671,25 @@ export default function OrderPage() {
|
||||
onClose={() => setIsRateOrderOpen(false)}
|
||||
/>
|
||||
|
||||
{!hasClosedStatus ||
|
||||
(hasCanceledByCustomerStatus && <CancelOrderBottomSheet />)}
|
||||
{(!hasClosedStatus && !hasCanceledByCustomerStatus) && (
|
||||
<CancelOrderBottomSheet />
|
||||
)}
|
||||
</Layout.Content>
|
||||
|
||||
{hasClosedStatus ||
|
||||
(hasCanceledByCustomerStatus && (
|
||||
<Layout.Footer className={styles.checkoutButtonContainer}>
|
||||
<Button
|
||||
type="primary"
|
||||
shape="round"
|
||||
className={styles.checkoutButton}
|
||||
onClick={() => {
|
||||
navigate(`/${restaurant?.subdomain}/menu`);
|
||||
}}
|
||||
>
|
||||
{t("order.newOrder")}
|
||||
</Button>
|
||||
</Layout.Footer>
|
||||
))}
|
||||
{(hasClosedStatus || hasCanceledByCustomerStatus) && (
|
||||
<Layout.Footer className={styles.checkoutButtonContainer}>
|
||||
<Button
|
||||
type="primary"
|
||||
shape="round"
|
||||
className={styles.checkoutButton}
|
||||
onClick={() => {
|
||||
navigate(`/${restaurant?.subdomain}/menu`);
|
||||
}}
|
||||
>
|
||||
{t("order.newOrder")}
|
||||
</Button>
|
||||
</Layout.Footer>
|
||||
)}
|
||||
</Layout>
|
||||
<SplitBillParticipantsBottomSheet
|
||||
isOpen={isSplitBillParticipantsBottomSheetOpen}
|
||||
|
||||
Reference in New Issue
Block a user