업그레이드 화면 신청 일시 양식 수정
This commit is contained in:
@@ -10,7 +10,6 @@ import { ACTIVATE_STATUSES, REQUEST_STATUSES } from "@/lib/constants";
|
|||||||
import type { UpgradeRequestListItem } from "@/lib/upgrade-requests";
|
import type { UpgradeRequestListItem } from "@/lib/upgrade-requests";
|
||||||
import {
|
import {
|
||||||
formatDate,
|
formatDate,
|
||||||
formatDateTime,
|
|
||||||
getAccountTypeLabel,
|
getAccountTypeLabel,
|
||||||
getActivateStatusLabel,
|
getActivateStatusLabel,
|
||||||
getRequestStatusLabel,
|
getRequestStatusLabel,
|
||||||
@@ -79,9 +78,7 @@ export function UpgradeRequestsTable({ data }: UpgradeRequestsTableProps) {
|
|||||||
{request.additionalPrice.toLocaleString()}원
|
{request.additionalPrice.toLocaleString()}원
|
||||||
</span>
|
</span>
|
||||||
</BodyCell>
|
</BodyCell>
|
||||||
<BodyCell>
|
<BodyCell>{formatDate(request.requestedDateTime)}</BodyCell>
|
||||||
{formatDateTime(request.requestedDateTime)}
|
|
||||||
</BodyCell>
|
|
||||||
<BodyCell>
|
<BodyCell>
|
||||||
{formatDate(request.availableActivateDateTime)}
|
{formatDate(request.availableActivateDateTime)}
|
||||||
</BodyCell>
|
</BodyCell>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { ACTIVATE_STATUSES, REQUEST_STATUSES } from "@/lib/constants";
|
|||||||
import type { Prisma } from "@/lib/generated/prisma/client";
|
import type { Prisma } from "@/lib/generated/prisma/client";
|
||||||
import {
|
import {
|
||||||
calculateUpgradePrice,
|
calculateUpgradePrice,
|
||||||
|
formatDate,
|
||||||
getAccountTypeLabel,
|
getAccountTypeLabel,
|
||||||
getAccountTypePrice,
|
getAccountTypePrice,
|
||||||
getTrialAccountTypeLabel,
|
getTrialAccountTypeLabel,
|
||||||
@@ -276,7 +277,7 @@ function toUpgradeRequestListItem(request: {
|
|||||||
registeredActivateStatus: request.RegisteredActivateStatus,
|
registeredActivateStatus: request.RegisteredActivateStatus,
|
||||||
registeredAccountType: request.RegisteredAccountType,
|
registeredAccountType: request.RegisteredAccountType,
|
||||||
requestedAccountType: request.RequestedAccountType,
|
requestedAccountType: request.RequestedAccountType,
|
||||||
requestedDateTime: request.RequestedDateTime.toISOString(),
|
requestedDateTime: formatDate(request.RequestedDateTime),
|
||||||
availableActivateDateTime:
|
availableActivateDateTime:
|
||||||
request.maestro.AvailableActivateDateTime.toISOString(),
|
request.maestro.AvailableActivateDateTime.toISOString(),
|
||||||
status: request.Status,
|
status: request.Status,
|
||||||
|
|||||||
Reference in New Issue
Block a user