-
Notifications
You must be signed in to change notification settings - Fork 0
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 #20 from Funssion-SWM/temporary-store
Temporary store
- Loading branch information
Showing
13 changed files
with
191 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import Header from '@/components/shared/Header'; | ||
import { getMemosDraftsByUserId } from '@/service/me'; | ||
import LayoutWrapper from '@/components/shared/LayoutWrapper'; | ||
import MeDraftContainer from '@/components/me/MeDraftContainer'; | ||
|
||
type Props = { | ||
params: { | ||
slug: number; | ||
}; | ||
}; | ||
|
||
export default async function MeDraftPage({ params: { slug } }: Props) { | ||
const memos = await getMemosDraftsByUserId(slug); | ||
|
||
return ( | ||
<section> | ||
<Header /> | ||
<LayoutWrapper paddingY="sm:py-5"> | ||
<MeDraftContainer memos={memos} /> | ||
</LayoutWrapper> | ||
</section> | ||
); | ||
} |
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,26 @@ | ||
'use client'; | ||
|
||
import { Memo } from '@/types/memo'; | ||
import MemosGrid from '@/components/memo/MemosGrid' | ||
import CategoryBtn from '@/components/shared/btn/CategoryBtn'; | ||
// import CategoryBtn from '../shared/btn/CategoryBtn'; | ||
|
||
type Props = { | ||
memos: Memo[]; | ||
}; | ||
|
||
export default function MeDraftContainer({ memos }: Props) { | ||
|
||
return ( | ||
<div> | ||
<div className="flex gap-2 mb-5"> | ||
<CategoryBtn | ||
text="Memo" | ||
onClick={() => {}} | ||
isSelected={true} | ||
/> | ||
</div> | ||
<MemosGrid memos={memos} colNum={4} /> | ||
</div> | ||
); | ||
} |
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
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,29 @@ | ||
type Props = { | ||
text: string; | ||
count?: number; | ||
onClickBtn: () => void; | ||
onClickCount: () => void; | ||
extraStyle?: string; | ||
}; | ||
|
||
export default function BlueBtnWithCount({ text, count = 0, onClickBtn, onClickCount, extraStyle = '' }: Props) { | ||
return ( | ||
<span className={extraStyle}> | ||
<button | ||
type="button" | ||
className={`bg-soma-blue-40 text-white pl-3.5 pr-2 py-2 rounded-l-3xl transition hover:bg-soma-blue-50 text-sm sm:text-base`} | ||
onClick={() => onClickBtn()} | ||
> | ||
{text} | ||
</button> | ||
<button | ||
type="button" | ||
className={`bg-soma-blue-40 text-white pr-3.5 pl-2 py-2 rounded-r-3xl transition hover:bg-soma-blue-50 text-sm sm:text-base`} | ||
onClick={() => onClickCount()} | ||
> | ||
{count} | ||
</button> | ||
</span> | ||
); | ||
} | ||
|
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