mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Refactor: remove unused imports in /pages/beers/index.tsx
This commit is contained in:
@@ -1,21 +1,14 @@
|
|||||||
import { NextPage } from 'next';
|
import { NextPage } from 'next';
|
||||||
|
|
||||||
import BeerCard from '@/components/BeerIndex/BeerCard';
|
import BeerCard from '@/components/BeerIndex/BeerCard';
|
||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
import Link from 'next/link';
|
import { MutableRefObject, useRef } from 'react';
|
||||||
import UserContext from '@/contexts/userContext';
|
|
||||||
import { MutableRefObject, useContext, useRef } from 'react';
|
|
||||||
|
|
||||||
import { useInView } from 'react-intersection-observer';
|
import { useInView } from 'react-intersection-observer';
|
||||||
import Spinner from '@/components/ui/Spinner';
|
import Spinner from '@/components/ui/Spinner';
|
||||||
|
|
||||||
import useBeerPosts from '@/hooks/data-fetching/beer-posts/useBeerPosts';
|
import useBeerPosts from '@/hooks/data-fetching/beer-posts/useBeerPosts';
|
||||||
import { FaArrowUp, FaPlus } from 'react-icons/fa';
|
import { FaArrowUp } from 'react-icons/fa';
|
||||||
import LoadingCard from '@/components/ui/LoadingCard';
|
import LoadingCard from '@/components/ui/LoadingCard';
|
||||||
|
|
||||||
const BeerPage: NextPage = () => {
|
const BeerPage: NextPage = () => {
|
||||||
const { user } = useContext(UserContext);
|
|
||||||
|
|
||||||
const PAGE_SIZE = 6;
|
const PAGE_SIZE = 6;
|
||||||
|
|
||||||
const { beerPosts, setSize, size, isLoading, isLoadingMore, isAtEnd } = useBeerPosts({
|
const { beerPosts, setSize, size, isLoading, isLoadingMore, isAtEnd } = useBeerPosts({
|
||||||
|
|||||||
Reference in New Issue
Block a user