Skip to content
Open
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 src/components/mobiles/ReserveList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function ReserveList({ listType }: Props) {
</div>
<div className="w-4/12 items-center flex flex-col">
<div className="text-sm">{getMobileNum(data.phoneNum)}</div>
<div className="text-secondary-700 text-xs">{prettyDate(data.updateAt)}</div>
<div className="text-secondary-700 text-xs">{prettyDate(data.updatedAt)}</div>
</div>
<div className="w-3/12 flex justify-center gap-1.5">
<div
Expand Down
4 changes: 2 additions & 2 deletions src/components/modals/MessageModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const MessageModal: React.FC = () => {
<td><span>{messageInfo.phoneNum}</span></td>
<td>
<span>
{messageInfo.updateAt
? `${prettyDate(messageInfo.updateAt)} 20:30`
{messageInfo.updatedAt
? `${prettyDate(messageInfo.updatedAt)} 20:30`
: '-'}
</span>
</td>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/tablings/TablingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface ReserveItem {
reservationNum: string | number;
personCount: number;
phoneNum: string;
updateAt?: string;
updatedAt?: string;
}

type ReserveType = 'reserve' | 'cancel' | 'complete';
Expand Down Expand Up @@ -470,7 +470,7 @@ const TablingPage: React.FC = () => {
{prettyPhoneNumber(reserve.phoneNum)}
</td>
<td className='px-4 py-4 text-center'>
{prettyDate(reserve.updateAt)} 20:30
{prettyDate(reserve.updatedAt)} 20:30
</td>
{selectOrderType !== 'complete' && (
<td className='px-[2px] py-4 lg:px-1 w-10 lg:w-12'>
Expand Down
2 changes: 1 addition & 1 deletion src/stores/reserve/messageModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface MessageInfo {
reservationNum: number | string;
userName: string;
phoneNum: string;
updateAt: string;
updatedAt: string;
}

interface MessageModalStore {
Expand Down
4 changes: 2 additions & 2 deletions src/stores/reserve/reserveList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { create } from 'zustand';
import { alertError, api } from '@/utils/api';

interface ReserveItem {
reservationId: string;
reservationId: string;
userName: string;
reservationNum: string | number;
personCount: number;
phoneNum: string;
updateAt: string;
updatedAt: string;
}

type ReserveType = 'reserve' | 'cancel' | 'complete';
Expand Down