Skip to content

Commit

Permalink
chore: daily development
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Dec 9, 2024
1 parent e7faff7 commit 7d1a9dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
"use client";
import ReactECharts from "echarts-for-react";
import {
Divider,
Input,
Popconfirm,
Space,
Spin,
Switch,
Table,
Tag,
theme,
Typography,
} from "antd";
import { Input, Space, Spin, Table, Tag, theme, Typography } from "antd";
import { ColumnsType } from "antd/es/table";
import Link from "next/link";
import MainBox from "@/components/wget/layout/main-box";
Expand All @@ -21,6 +10,7 @@ import { useParams } from "next/navigation";
import WithTheme from "@/theme";
import { EditOutlined } from "@ant-design/icons";
import dayjs from "dayjs";

const { Title, Text } = Typography;
const getProjectCompartmentData = [
{
Expand All @@ -40,23 +30,7 @@ const getProjectCompartmentData = [
value: "100",
},
];
const tags = [
{
color: "red",
name: "tag",
link: "https://www.baidu.com",
},
{
color: "red",
name: "tag",
link: "https://www.baidu.com",
},
{
color: "red",
name: "tag",
link: "https://www.baidu.com",
},
];

const fetcher = ({ url, params }: { url: string; params: any }) =>
axios
.get(url, {
Expand Down Expand Up @@ -110,7 +84,7 @@ const ProjectOverviewPage = () => {
fetcher,
);

const { data: projectData } = useSWR(
const { data: projectData,isLoading } = useSWR(
{
url: `/api/project/${provider}-${id}-${slug}`,
},
Expand Down Expand Up @@ -357,7 +331,7 @@ const ProjectOverviewPage = () => {
</div>
{/*div*/}
<Table
loading={false}
loading={isLoading}
style={{
border: `1px solid ${token.colorBorder}`,
borderRadius: `${token.borderRadius}px`,
Expand Down
6 changes: 5 additions & 1 deletion packages/canyon-platform/app/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ const ProjectsPage = () => {
boxShadow: `${token.boxShadowTertiary}`,
}}
>
<Table dataSource={data?.data || []} columns={columns} />
<Table
loading={isLoading}
dataSource={data?.data || []}
columns={columns}
/>
</div>
</MainBox>
);
Expand Down

0 comments on commit 7d1a9dc

Please sign in to comment.