diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9a30e89 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build Check + +on: + pull_request: + branches: + - develop + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm install + + - name: Build project + run: npm run build diff --git a/package-lock.json b/package-lock.json index b1dd0c1..5194101 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,8 @@ "react-dom": "^19.1.0", "react-feather": "^2.0.10", "react-router-dom": "^7.7.0", - "tailwind-merge": "^3.3.1" + "tailwind-merge": "^3.3.1", + "zustand": "^5.0.7" }, "devDependencies": { "@eslint/js": "^9.30.1", @@ -1940,7 +1941,7 @@ "version": "19.1.8", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.8.tgz", "integrity": "sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "csstype": "^3.0.2" @@ -2581,7 +2582,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", - "dev": true, + "devOptional": true, "license": "MIT" }, "node_modules/debug": { @@ -4814,6 +4815,35 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/zustand": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.7.tgz", + "integrity": "sha512-Ot6uqHDW/O2VdYsKLLU8GQu8sCOM1LcoE8RwvLv9uuRT9s6SOHCKs0ZEOhxg+I1Ld+A1Q5lwx+UlKXXUoCZITg==", + "license": "MIT", + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=18.0.0", + "immer": ">=9.0.6", + "react": ">=18.0.0", + "use-sync-external-store": ">=1.2.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + }, + "use-sync-external-store": { + "optional": true + } + } } } } diff --git a/package.json b/package.json index c984826..2d1bf17 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "react-dom": "^19.1.0", "react-feather": "^2.0.10", "react-router-dom": "^7.7.0", - "tailwind-merge": "^3.3.1" + "tailwind-merge": "^3.3.1", + "zustand": "^5.0.7" }, "devDependencies": { "@eslint/js": "^9.30.1", diff --git a/src/component/Layout.tsx b/src/component/Layout.tsx index d49c1c6..ba242e9 100644 --- a/src/component/Layout.tsx +++ b/src/component/Layout.tsx @@ -1,7 +1,7 @@ // src/components/Layout.tsx import { Outlet } from 'react-router-dom'; import Header from './Header'; -import Sidebar from './Sidebar'; +import Sidebar from './SideBar'; import { useState } from 'react'; export default function Layout() { @@ -11,9 +11,9 @@ export default function Layout() {
setIsSidebarOpen(false)} /> setIsSidebarOpen(false)} /> - + {/* 헤더 높이만큼 여백 주기 */} -
+