Skip to content

Commit 02b9945

Browse files
committed
migrate home header page
1 parent 38bcffd commit 02b9945

File tree

7 files changed

+18
-19
lines changed

7 files changed

+18
-19
lines changed

src/components/Home/HomeHeader/HomeHeader.style.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import styled from "styled-components";
22
import { queries } from "../../../styles/mediaQueries";
33
import colors from "../../../styles/colors";
4-
import { Col } from "antd";
4+
import Grid from "@mui/material/Grid";
55

6-
const HomeHeaderStyle = styled(Col)`
6+
const HomeHeaderStyle = styled(Grid)`
77
display: flex;
88
background-color: ${colors.blackTertiary};
99
align-items: center;

src/components/Home/HomeHeader/HomeHeader.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Col } from "antd";
1+
import Grid from "@mui/material/Grid";
22
import React from "react";
33
import CTASection from "../CTA/CTASection";
44
import HomeHeaderStyle from "./HomeHeader.style";
@@ -8,17 +8,17 @@ import HomeHeaderSearch from "./HomeHeaderSearch";
88

99
const HomeHeader = ({ stats }) => {
1010
return (
11-
<HomeHeaderStyle>
12-
<Col
13-
xxl={12}
14-
lg={16}
15-
sm={18}
16-
xs={24}
11+
<HomeHeaderStyle container>
12+
<Grid item
13+
xl={6}
14+
lg={8}
15+
sm={9}
16+
xs={12}
1717
className="home-header-content"
1818
>
1919
<HomeHeaderTitle />
2020
<CTASection />
21-
</Col>
21+
</Grid>
2222
<HomeStats stats={stats} />
2323

2424
<HomeHeaderSearch />

src/components/Home/HomeHeader/HomeHeaderSearch.style.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Col } from "antd";
1+
import Grid from "@mui/material/Grid";
22
import styled from "styled-components";
33
import { queries } from "../../../styles/mediaQueries";
44
import colors from "../../../styles/colors";
55

6-
const HomeHeaderSearchStyled = styled(Col)`
6+
const HomeHeaderSearchStyled = styled(Grid)`
77
display: flex;
88
flex-direction: column;
99
justify-content: center;

src/components/Home/HomeHeader/HomeHeaderSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const HomeHeaderSearch = () => {
4141
};
4242

4343
return (
44-
<HomeHeaderSearchStyled xxl={12} lg={16} sm={18} xs={24}>
44+
<HomeHeaderSearchStyled container item xl={6} lg={8} sm={9} xs={12}>
4545
<h2 className="title">{t("home:homeHeaderSearchTitle")}</h2>
4646

4747
<InputSearch

src/components/Home/HomeHeader/HomeHeaderTitle.tsx

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

55
const HomeHeaderTitle = () => {
66
const { t } = useTranslation();
77
return (
8-
<Col className="home-header-title">
8+
<Grid item className="home-header-title">
99
<h1>{t("home:title")}</h1>
10-
</Col>
10+
</Grid>
1111
);
1212
};
1313

src/components/Kanban/KanbanToolbar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { Grid } from "@mui/material";
21
import React from "react";
32
import { useTranslation } from "next-i18next";
43

5-
import { FormControlLabel, Switch } from "@mui/material";
4+
import { FormControlLabel, Switch, Grid } from "@mui/material";
65

76
const KanbanToolbar = ({ filterUserTasks, setFilterUserTasks }) => {
87
const { t } = useTranslation();

src/components/Kanban/KanbanView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const KanbanView = ({ reviewTaskType }) => {
3636
filterUserTasks={filterUserTasks}
3737
setFilterUserTasks={setFilterUserTasks}
3838
/>
39-
<Grid container xs={11.5} justifyContent="center" className="kanban-board">
39+
<Grid container item xs={11.5} justifyContent="center" className="kanban-board">
4040
{states.map((state) => (
4141
<KanbanGrid
4242
key={state}

0 commit comments

Comments
 (0)