Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
36 changes: 33 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/component/Layout.tsx
Original file line number Diff line number Diff line change
@@ -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() {
Expand All @@ -11,9 +11,9 @@ export default function Layout() {
<div className="min-h-screen bg-white">
<Header onMenuClick={() => setIsSidebarOpen(false)} />
<Sidebar isOpen={isSidebarOpen} onClose={() => setIsSidebarOpen(false)} />

{/* 헤더 높이만큼 여백 주기 */}
<main className="pt-16 px-4">
<main className="px-4 pt-16">
<Outlet />
</main>
</div>
Expand Down