mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +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);
|
||||
return (
|
||||
<div className="w-full space-y-3">
|
||||
<div className="card h-96 bg-base-300">
|
||||
<div className="card-body h-full" ref={sectionRef}>
|
||||
<div className="w-full space-y-3" ref={sectionRef}>
|
||||
<div className="card bg-base-300">
|
||||
<div className="card-body h-full">
|
||||
{user ? (
|
||||
<BeerCommentForm beerPost={beerPost} mutate={mutate} />
|
||||
) : (
|
||||
|
||||
@@ -16,7 +16,7 @@ import { FaArrowUp } from 'react-icons/fa';
|
||||
const BeerPage: NextPage = () => {
|
||||
const { user } = useContext(UserContext);
|
||||
|
||||
const PAGE_SIZE = 2;
|
||||
const PAGE_SIZE = 6;
|
||||
|
||||
const { beerPosts, setSize, size, isLoading, isLoadingMore, isAtEnd } = useBeerPosts({
|
||||
pageSize: PAGE_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user