Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/nowait-user/src/api/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const getOrderDetails = async (
publicCode: string,
tableId: number
): Promise<OrderDetailsServerResponse> => {
const res = await api.get(`${API_URI}/orders/items/${publicCode}/${tableId}`);
const res = await api.get(`/orders/items/${publicCode}/${tableId}`);
return res.data;
};

Expand Down
2 changes: 1 addition & 1 deletion apps/nowait-user/src/components/common/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const MenuItem = ({ data, mode }: PropsType) => {
return (
<li className="mb-5 last:mb-0">
<button
disabled={!data.isSoldOut}
disabled={data.isSoldOut}
onClick={handleMenuClick}
className={`w-full flex justify-between items-center ${
mode === "order" && "cursor-pointer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useParams } from "react-router-dom";
import { formatDate } from "../../../utils/formatDate";
import BackOnlyHeader from "../../../components/BackOnlyHeader";
import FullPageLoader from "../../../components/FullPageLoader";
import { useEffect } from "react";

interface OrderDetailsType {
menuId: number;
Expand All @@ -30,6 +31,10 @@ const OrderDetailsPage = () => {
queryFn: () => getOrderDetails(storeId!, Number(tableId!)),
select: (data) => data?.response,
});

useEffect(()=>{
alert(JSON.stringify(orderDetails))
},[orderDetails])
console.log(orderDetails);
if (isLoading) return <FullPageLoader />;
//주문내역 없을 시
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const RemittanceWaitPage = () => {
payload
);
console.log(res, "주문 생성");
alert(JSON.stringify(res.response))
if (res?.success) {
//입금자명 로컬스토리지 저장
localStorage.setItem("depositorName", res.response.depositorName);
Expand Down