From 7d2cd3e4ff3c025a6d8bf9cba99efdbbbd8206bd Mon Sep 17 00:00:00 2001 From: YerangPark Date: Wed, 11 Sep 2024 22:16:34 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C=20?= =?UTF-8?q?Navbar=20=EB=B0=8F=20=EC=B4=88=EA=B8=B0=20=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/dashboard/page.tsx | 5 +++ src/components/atoms/Button.tsx | 4 +-- src/components/molecules/DefaultButton.tsx | 2 +- src/components/molecules/RoundButton.tsx | 2 +- src/components/molecules/SubmitButton.tsx | 2 +- .../molecules/UserButtonWithMenu.tsx | 19 ++++++++++++ src/components/organisms/DashboardContent.tsx | 13 ++++++++ src/components/organisms/DashboardNavBar.tsx | 21 +++++++++++++ .../organisms/EmptyDashboardContents.tsx | 31 +++++++++++++++++++ src/components/organisms/LoginModal.tsx | 2 +- src/components/organisms/SignupModal.tsx | 12 ++++--- src/components/templates/DashboardPage.tsx | 16 ++++++++++ src/types/data.ts | 3 ++ src/types/style.ts | 3 +- 14 files changed, 123 insertions(+), 12 deletions(-) create mode 100644 src/app/dashboard/page.tsx create mode 100644 src/components/molecules/UserButtonWithMenu.tsx create mode 100644 src/components/organisms/DashboardContent.tsx create mode 100644 src/components/organisms/DashboardNavBar.tsx create mode 100644 src/components/organisms/EmptyDashboardContents.tsx create mode 100644 src/types/data.ts diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx new file mode 100644 index 0000000..9b9850f --- /dev/null +++ b/src/app/dashboard/page.tsx @@ -0,0 +1,5 @@ +import DashboardPage from '@/components/templates/DashboardPage' + +export default function Page() { + return +} diff --git a/src/components/atoms/Button.tsx b/src/components/atoms/Button.tsx index 532255b..3f14d16 100644 --- a/src/components/atoms/Button.tsx +++ b/src/components/atoms/Button.tsx @@ -2,7 +2,7 @@ import React from 'react' import { Button as ChakraButton } from '@chakra-ui/react' import { ButtonProps } from '@/types/style' -const Button: React.FC = ({ label, onClick, disabled = false, bg, color, _hover, ...props}) => { +const Button: React.FC = ({ children, onClick, disabled = false, bg, color, _hover, ...props}) => { return ( = ({ label, onClick, disabled = false, bg, c color={color} _hover={_hover} {...props}> - {label} + {children} ) } diff --git a/src/components/molecules/DefaultButton.tsx b/src/components/molecules/DefaultButton.tsx index a54b5f2..2c092cb 100644 --- a/src/components/molecules/DefaultButton.tsx +++ b/src/components/molecules/DefaultButton.tsx @@ -25,7 +25,7 @@ const DefaultButton: React.FC = ({ label, onClick, theme, mr return (