create project
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
TableRow,
|
||||
} from "../ui/table";
|
||||
import Badge from "../ui/badge/Badge";
|
||||
import { ApplicationDto } from "@/interface/historian";
|
||||
import { Application } from "@/interface/historian";
|
||||
|
||||
export type AppSortColumn =
|
||||
| "created_at"
|
||||
@@ -19,9 +19,9 @@ export type AppSortColumn =
|
||||
| "updated_at";
|
||||
|
||||
interface ApplicationTableProps {
|
||||
data: ApplicationDto[];
|
||||
data: Application[];
|
||||
onSort: (column: AppSortColumn) => void;
|
||||
onViewDetail: (app: ApplicationDto) => void;
|
||||
onViewDetail: (app: Application) => void;
|
||||
sortBy?: AppSortColumn;
|
||||
sortOrder?: "asc" | "desc";
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ export default function UserDetailModal({
|
||||
) : (
|
||||
<>
|
||||
{(mediaData?.data?.length ?? 0) > 0 ? (
|
||||
<MediaCard data={mediaData ?? {}} />
|
||||
<MediaCard data={mediaData!} />
|
||||
) : (
|
||||
<div className="p-5 border border-dashed border-gray-200 rounded-2xl text-center text-gray-400 text-sm">
|
||||
Người dùng này chưa có dữ liệu media.
|
||||
|
||||
@@ -56,7 +56,7 @@ export default function ApplicationList({
|
||||
|
||||
const handleViewDetail = (app: any) => {
|
||||
dispatch(setSelectedApplication(app));
|
||||
router.push(`/account/applications`);
|
||||
router.push(`/user/account/applications`);
|
||||
};
|
||||
|
||||
const StatusIcons: Record<string, React.ReactNode> = {
|
||||
|
||||
Reference in New Issue
Block a user