mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Remove height for comment form card, update page size for index page
This commit is contained in:
@@ -46,9 +46,9 @@ const BeerPostCommentsSection: FC<BeerPostCommentsSectionProps> = ({ beerPost })
|
|||||||
|
|
||||||
const sectionRef: MutableRefObject<HTMLDivElement | null> = useRef(null);
|
const sectionRef: MutableRefObject<HTMLDivElement | null> = useRef(null);
|
||||||
return (
|
return (
|
||||||
<div className="w-full space-y-3">
|
<div className="w-full space-y-3" ref={sectionRef}>
|
||||||
<div className="card h-96 bg-base-300">
|
<div className="card bg-base-300">
|
||||||
<div className="card-body h-full" ref={sectionRef}>
|
<div className="card-body h-full">
|
||||||
{user ? (
|
{user ? (
|
||||||
<BeerCommentForm beerPost={beerPost} mutate={mutate} />
|
<BeerCommentForm beerPost={beerPost} mutate={mutate} />
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import { FaArrowUp } from 'react-icons/fa';
|
|||||||
const BeerPage: NextPage = () => {
|
const BeerPage: NextPage = () => {
|
||||||
const { user } = useContext(UserContext);
|
const { user } = useContext(UserContext);
|
||||||
|
|
||||||
const PAGE_SIZE = 2;
|
const PAGE_SIZE = 6;
|
||||||
|
|
||||||
const { beerPosts, setSize, size, isLoading, isLoadingMore, isAtEnd } = useBeerPosts({
|
const { beerPosts, setSize, size, isLoading, isLoadingMore, isAtEnd } = useBeerPosts({
|
||||||
pageSize: PAGE_SIZE,
|
pageSize: PAGE_SIZE,
|
||||||
|
|||||||
Reference in New Issue
Block a user