-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Kernel360/13-feature-프로젝트-종합-대시보드-기능구현
13 feature 프로젝트 종합 대시보드 기능구현
- Loading branch information
Showing
23 changed files
with
2,508 additions
and
2,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Box, Text } from "@chakra-ui/react"; | ||
|
||
interface CustomBoxProps { | ||
children: string; | ||
} | ||
|
||
export const CustomBox = ({ children }: CustomBoxProps) => { | ||
const color = children === "진행중" ? "#21A366" : "#505050"; | ||
return ( | ||
<Box | ||
display="flex" | ||
backgroundColor="#F9F9F9" | ||
paddingX="8px" | ||
paddingY="4px" | ||
justifyContent="center" | ||
alignItems="center" | ||
borderRadius="6px" | ||
color={color} | ||
fontSize="14px" | ||
fontWeight="500" | ||
letterSpacing="-0.28px" | ||
width="100px" | ||
> | ||
{children} | ||
</Box> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Spinner, Text, VStack } from "@chakra-ui/react"; | ||
|
||
export const Loading = () => { | ||
return ( | ||
<VStack colorPalette="teal"> | ||
<Spinner size="xl" color="colorPalette.gray" /> | ||
<Text textStyle="xl" color="colorPalette.gray"> | ||
Loading... | ||
</Text> | ||
</VStack> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"use client"; | ||
|
||
import { useEffect, useState } from "react"; | ||
|
||
export const MSWComponent = ({ children }: { children: React.ReactNode }) => { | ||
const [mswReady, setMswReady] = useState(false); | ||
useEffect(() => { | ||
const init = async () => { | ||
const initMsw = await import("@/src/mocks/index").then( | ||
(res) => res.initMSW | ||
); | ||
await initMsw(); | ||
setMswReady(true); | ||
}; | ||
|
||
if (!mswReady) { | ||
init(); | ||
} | ||
}, [mswReady]); | ||
|
||
if (!mswReady) { | ||
return null; | ||
} | ||
|
||
return <>{children}</>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.