-
Notifications
You must be signed in to change notification settings - Fork 1
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 #94 from DoTheZ-Team/GLUE-304-QA-반영
GLUE 304 QA 반영
- Loading branch information
Showing
12 changed files
with
56 additions
and
40 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
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 |
---|---|---|
@@ -1,23 +1,17 @@ | ||
'use client'; | ||
|
||
import { useBlogPageContext } from '../BlogFetcher/BlogContext'; | ||
import Slider from './Slider'; | ||
|
||
export default function Albums() { | ||
const { postItems } = useBlogPageContext(); | ||
|
||
const photos = postItems.flatMap(({ photo }) => | ||
photo ? photo.filter(Boolean) : [], | ||
); | ||
|
||
return ( | ||
<article className="flex flex-col w-full gap-20 px-100 items-start"> | ||
<article className="flex flex-col w-full gap-20 px-100 items-start mt-30 overflow-scroll"> | ||
<div className="flex flex-col justify-center items-center"> | ||
<div className="font-extrabold text-4xl">Albums</div> | ||
<p className="w-135 h-3 bg-primary mb-2" /> | ||
<p className="w-145 h-3 bg-primary mb-2" /> | ||
</div> | ||
<Slider photos={photos} /> | ||
|
||
<Slider /> | ||
</article> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
'use client'; | ||
|
||
import { useState } from 'react'; | ||
import { AsyncBoundaryWithQuery } from '@/react-utils'; | ||
import { BoardFetcher } from '../BlogFetcher'; | ||
import BoardContent from './BoardContent'; | ||
|
||
export default function Board({ blogId }: { blogId: number }) { | ||
const [page, setPage] = useState<number>(1); | ||
const [page, setPage] = useState<number>(0); | ||
|
||
return ( | ||
<BoardFetcher blogId={blogId} page={page}> | ||
<BoardContent page={page} setPage={setPage} /> | ||
</BoardFetcher> | ||
<AsyncBoundaryWithQuery> | ||
<BoardFetcher blogId={blogId} page={page}> | ||
<BoardContent page={page} setPage={setPage} /> | ||
</BoardFetcher> | ||
</AsyncBoundaryWithQuery> | ||
); | ||
} |
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
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