Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐ŸŽจ ๊ณต์šฉ ์ปดํฌ๋„ŒํŠธ ์ถ”๊ฐ€ (๋“œ๋กญ๋‹ค์šด, ํ—ค๋”, ํŽ˜์ด์ง€ ์ปจํ…Œ์ด๋„ˆ) #9

Merged
merged 22 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2559cfc
feat: svgr ์„ค์น˜ ๋ฐ ์„ธํŒ…
suhwan2004 Oct 20, 2024
6b67300
feat: shared ํด๋” ๋‚ด์—์„œ tailwind๊ฐ€ ์ž‘๋™๋˜๋„๋ก ์„ธํŒ…
suhwan2004 Oct 20, 2024
75712f4
feat: public ํด๋”๋‚ด assets์„ import ๊ฐ€๋Šฅํ•˜๋„๋ก ์„ธํŒ…
suhwan2004 Oct 20, 2024
96e12c5
feat: storybook์—์„œ svgr์ด ๋™์ž‘๋˜๋„๋ก ์„ธํŒ…
suhwan2004 Oct 20, 2024
cd146d9
feat: header ๊ณตํ†ต ์ปดํฌ๋„ŒํŠธ ๊ตฌํ˜„
suhwan2004 Oct 20, 2024
2c96233
feat: PageContainer ์ปดํฌ๋„ŒํŠธ ๊ตฌํ˜„
suhwan2004 Oct 20, 2024
9279cf0
feat: Dropdown ์ปดํฌ๋„ŒํŠธ ๊ตฌํ˜„ ๋ฐ storise ํŒŒ์ผ ์ƒ์„ฑ
suhwan2004 Oct 20, 2024
4523ebc
feat: page.tsx์— pagecontainer ์ ์šฉ
suhwan2004 Oct 20, 2024
0d133c3
feat: dropdown, header export ํŒŒ์ผ ์ถ”๊ฐ€
suhwan2004 Oct 20, 2024
5e3b0e8
chore: lint ์ ์šฉ
suhwan2004 Oct 20, 2024
eead774
chore: shared ๋‚ด .gitkeep ์ œ๊ฑฐ
suhwan2004 Oct 20, 2024
d8b442c
feat: dropdown ๋‚ด use-client ์ถ”๊ฐ€
suhwan2004 Oct 20, 2024
e37d0e0
feat: PageContainer export ๊ตฌ์กฐ ์ˆ˜์ •
suhwan2004 Oct 20, 2024
688038e
Merge branch 'main' into feat/common-component-sh
suhwan2004 Oct 21, 2024
eaf48b7
setting: next.config.mjs๋‚ด turbopack ๋Œ€์‘ svg ์„ค์ • ์ œ๊ฑฐ
suhwan2004 Oct 21, 2024
5dc9820
feat: pageContainer ๋‚ด import ์ˆ˜์ •
suhwan2004 Oct 21, 2024
4b9f254
feat: dropdown ์ปดํฌ๋„ŒํŠธ ์ˆ˜์ •
suhwan2004 Oct 21, 2024
0c27f0d
Merge branch 'feat/common-component-sh' of https://github.com/CollaBuโ€ฆ
suhwan2004 Oct 21, 2024
34f27f9
chore: dropdown stories ํŒŒ์ผ ๋‚ด ๋„ค์ด๋ฐ ์ˆ˜์ •
suhwan2004 Oct 21, 2024
e34b33e
style: dropdown ์ปดํฌ๋„ŒํŠธ button ๋‚ด radius ์ถ”๊ฐ€
suhwan2004 Oct 21, 2024
c1f3b63
feat: Dropdown.stories.tsx ํƒ€์ž… ๋ช…์‹œ ์ค„์ž„ ๋ฐ props ๋‚ด ํ•จ์ˆ˜ ์„ ์–ธํ•˜์—ฌ ์ ์šฉ
suhwan2004 Oct 22, 2024
eb8e908
feat: Header.tsx ๋‚ด prop type ์ˆ˜์ •
suhwan2004 Oct 22, 2024
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
1 change: 1 addition & 0 deletions src/widgets/pageContainer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './ui';
16 changes: 16 additions & 0 deletions src/widgets/pageContainer/ui/PageContainer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Header } from '@/shared/ui';
import type { IHeader } from '@/shared/ui/header/ui/Header';
BangDori marked this conversation as resolved.
Show resolved Hide resolved

export interface IPageContainer {
headerProps: IHeader;
hasHeader?: boolean;
children?: JSX.Element;
}
export default function PageContainer({ headerProps, hasHeader = true, children }: IPageContainer) {
return (
<div>
{hasHeader && <Header {...headerProps} />}
<div className={`${hasHeader ? 'mt-[44px]' : ''}`}>{children}</div>
</div>
);
}