Skip to content

Commit 38bcffd

Browse files
committed
migrate kanban page
1 parent 2fe958f commit 38bcffd

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Divider } from "antd";
1+
import { Divider } from "@mui/material";
22
import { useTranslation } from "next-i18next";
33
import React from "react";
44

5-
const EmptyKanbanCol = ({ title }) => {
5+
const EmptyKanbanGrid = ({ title }) => {
66
const { t } = useTranslation();
77
return (
88
<div
@@ -16,9 +16,9 @@ const EmptyKanbanCol = ({ title }) => {
1616
<span style={{ fontSize: 24 }}>{title}</span>
1717

1818
<span>{t("list:totalItems", { total: 0 })}</span>
19-
<Divider style={{ marginTop: 12 }} />
19+
<Divider flexItem variant="middle" style={{ marginTop: 12 }} />
2020
</div>
2121
);
2222
};
2323

24-
export default EmptyKanbanCol;
24+
export default EmptyKanbanGrid;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ReviewTaskStates } from "../../machines/reviewTask/enums";
66
import KanbanSkeleton from "../Skeleton/KanbanSkeleton";
77
import colors from "../../styles/colors";
88
import BaseList from "../List/BaseList";
9-
import EmptyKanbanCol from "./EmptyKanbanCol";
9+
import EmptyKanbanGrid from "./EmptyKanbanGrid";
1010
import KanbanCard from "./KanbanCard";
1111
import styled from "styled-components";
1212

@@ -32,7 +32,7 @@ interface KanbanColProps {
3232
};
3333
}
3434

35-
const KanbanCol = ({
35+
const KanbanGrid = ({
3636
nameSpace,
3737
state,
3838
filterUser,
@@ -58,7 +58,7 @@ const KanbanCol = ({
5858
/>
5959
)}
6060
emptyFallback={
61-
<EmptyKanbanCol title={t(`reviewTask:${state}`)} />
61+
<EmptyKanbanGrid title={t(`reviewTask:${state}`)} />
6262
}
6363
showDividers={false}
6464
skeleton={<KanbanSkeleton />}
@@ -68,4 +68,4 @@ const KanbanCol = ({
6868
);
6969
};
7070

71-
export default KanbanCol;
71+
export default KanbanGrid;

src/components/Kanban/KanbanToolbar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Col } from "antd";
1+
import { Grid } from "@mui/material";
22
import React from "react";
33
import { useTranslation } from "next-i18next";
44

@@ -18,7 +18,7 @@ const KanbanToolbar = ({ filterUserTasks, setFilterUserTasks }) => {
1818
};
1919

2020
return (
21-
<Col span={24} className="kanban-toolbar">
21+
<Grid item xs={12} className="kanban-toolbar">
2222
{Object.keys(filterUserTasks).map((task) => (
2323
<FormControlLabel
2424
key={task}
@@ -35,7 +35,7 @@ const KanbanToolbar = ({ filterUserTasks, setFilterUserTasks }) => {
3535
)}
3636
/>
3737
))}
38-
</Col>
38+
</Grid>
3939
);
4040
};
4141

src/components/Kanban/KanbanView.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Col } from "antd";
2-
import React, { useMemo, useState } from "react";
1+
import { Grid } from "@mui/material";
2+
import React, { useState } from "react";
33

44
import {
55
KanbanClaimState,
@@ -8,7 +8,7 @@ import {
88
ReviewTaskStates,
99
ReviewTaskTypeEnum,
1010
} from "../../machines/reviewTask/enums";
11-
import KanbanCol from "./KanbanCol";
11+
import KanbanGrid from "./KanbanGrid";
1212
import { useAtom } from "jotai";
1313
import { currentNameSpace } from "../../atoms/namespace";
1414
import KanbanViewStyled from "./KanbanView.style";
@@ -36,17 +36,17 @@ const KanbanView = ({ reviewTaskType }) => {
3636
filterUserTasks={filterUserTasks}
3737
setFilterUserTasks={setFilterUserTasks}
3838
/>
39-
<Col span={23} className="kanban-board">
39+
<Grid container xs={11.5} justifyContent="center" className="kanban-board">
4040
{states.map((state) => (
41-
<KanbanCol
41+
<KanbanGrid
4242
key={state}
4343
nameSpace={nameSpace}
4444
state={ReviewTaskStates[state]}
4545
filterUser={filterUserTasks}
4646
reviewTaskType={reviewTaskType}
4747
/>
4848
))}
49-
</Col>
49+
</Grid>
5050
</KanbanViewStyled>
5151
);
5252
};

0 commit comments

Comments
 (0)