refator appeal modal window
This commit is contained in:
@@ -6,6 +6,7 @@ import { toast } from 'sonner';
|
||||
import DropDownList from '@/app/components/dropDownList';
|
||||
import { AppealsFile } from '@/app/hooks/react-query/useContentForAppeals';
|
||||
import { changeAppealContentStatus } from '@/app/actions/contentActions';
|
||||
import { formatDate, formatDateTime } from '@/app/lib/formatDate';
|
||||
|
||||
interface AppealModerationModalProps {
|
||||
file: AppealsFile | null;
|
||||
@@ -128,7 +129,7 @@ export default function AppealModerationModal({ file, onClose }: AppealModeratio
|
||||
<div className="file-moderation-modal__info-section">
|
||||
<label className="file-moderation-modal__label">Дата создания</label>
|
||||
<p className="file-moderation-modal__value">
|
||||
{new Date(file.createdAt).toLocaleString('ru-RU')}
|
||||
{formatDate(file.createdAt)}, {formatDateTime(file.createdAt)}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -136,7 +137,7 @@ export default function AppealModerationModal({ file, onClose }: AppealModeratio
|
||||
<div className="file-moderation-modal__info-section">
|
||||
<label className="file-moderation-modal__label">Дата решения</label>
|
||||
<p className="file-moderation-modal__value">
|
||||
{new Date(file.resolvedAt).toLocaleString('ru-RU')}
|
||||
{formatDate(file.resolvedAt)}, {formatDateTime(file.resolvedAt)}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user