Skip to content

Commit 9b42a67

Browse files
authored
Merge pull request #118 from Team-INSERT/refactor/meister
마이스터 페이지 리팩토링
2 parents 16f86e3 + dc39ca4 commit 9b42a67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+775
-797
lines changed

src/app/meister/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import MeisterPage from "@/templates/meister";
3+
import MeisterPage from "@/templates/meister/layouts";
44

55
const Meister = () => {
66
return <MeisterPage />;

src/components/Flex/Row.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ const Row = ({
77
justifyContent = "none",
88
alignItems = "none",
99
width,
10+
as,
11+
...props
1012
}: FlexPropsType) => {
1113
return (
12-
<StyledRow style={{ gap, justifyContent, alignItems, width }}>
14+
<StyledRow
15+
as={as}
16+
{...props}
17+
style={{ gap, justifyContent, alignItems, width }}
18+
>
1319
{children}
1420
</StyledRow>
1521
);

src/components/Flex/type.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ReactNode } from "react";
1+
import { HTMLAttributes, ReactNode } from "react";
22

3-
interface FlexPropsType {
3+
interface FlexPropsType extends HTMLAttributes<HTMLElement> {
44
children: ReactNode;
55
gap?: string;
66
justifyContent?:
@@ -12,6 +12,7 @@ interface FlexPropsType {
1212
alignItems?: "none" | "center" | "flex-end" | "flex-start" | "space-between";
1313
width?: string;
1414
height?: string;
15+
as?: string;
1516
}
1617

1718
export default FlexPropsType;

src/components/common/Header/assets/data/navigationList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const navigationList = [
22
{
33
id: 1,
4-
name: "👩🏻‍🎓 인증제",
4+
name: "👩🏻‍🎓 마이스터",
55
href: "/meister",
66
},
77
{

src/components/common/Modal/SettingModal/SettingHeader.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import styled from "styled-components";
22
import { font } from "@/styles";
3-
import { XIcon, Setting } from "@/assets/icons";
3+
import { Setting } from "@/assets/icons";
44
import useModal from "@/hooks/useModal";
5+
import { ModalCloseIcon } from "@/templates/bamboo/assets/icons";
56

67
const SettingHeader = () => {
78
const { closeModal } = useModal();
@@ -13,7 +14,7 @@ const SettingHeader = () => {
1314
<SettingTitle />
1415
</HGroup>
1516
<CloseButton>
16-
<XIcon onClick={closeModal} />
17+
<ModalCloseIcon onClick={closeModal} />
1718
</CloseButton>
1819
</Header>
1920
);

src/hooks/useMeister.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/provider/layoutProvider.helper.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ import { ROUTER } from "@/constants";
1010
const LayoutProvider = ({ children }: React.PropsWithChildren) => {
1111
const { isWindow } = useWindow();
1212
const routerName = isWindow ? window.location.pathname : "";
13-
const dontNeedAsidePage: Array<string> = [ROUTER.LOGIN, ROUTER.CALENDER];
13+
const dontNeedAsidePage: Array<string> = [
14+
ROUTER.LOGIN,
15+
ROUTER.CALENDER,
16+
ROUTER.MEISTER,
17+
];
1418
const isNeedAsidePage = !dontNeedAsidePage.includes(routerName);
1519

1620
return (

src/store/meister.store.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/store/searchStudentNumber.store.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { color } from "@/styles";
2+
import { SCORE } from "../../constants";
3+
4+
const graphColorData = {
5+
[SCORE.AVG]: color.primary_yellow,
6+
[SCORE.MY]: color.primary_blue,
7+
[SCORE.MAX]: color.primary_red,
8+
};
9+
10+
export default graphColorData;

0 commit comments

Comments
 (0)