Refactor: create separate directory for beer/brewery comments

This commit is contained in:
Aaron William Po
2023-05-02 23:27:12 -04:00
parent 954892a5ca
commit c5b546dcf6
7 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import {FC} from 'react'; import {FC} from 'react';
import Spinner from '../ui/Spinner'; import Spinner from '../ui/Spinner';
import CommentLoadingCardBody from './CommentLoadingCardBody'; import CommentLoadingCardBody from '../BeerBreweryComments/CommentLoadingCardBody';
interface LoadingComponentProps { interface LoadingComponentProps {
length: number; length: number;

View File

@@ -8,7 +8,7 @@ import useBeerPostComments from '@/hooks/data-fetching/beer-comments/useBeerPost
import useBreweryPostComments from '@/hooks/data-fetching/brewery-comments/useBreweryPostComments'; import useBreweryPostComments from '@/hooks/data-fetching/brewery-comments/useBreweryPostComments';
import NoCommentsCard from '../BeerById/NoCommentsCard'; import NoCommentsCard from '../BeerById/NoCommentsCard';
import LoadingComponent from '../BeerById/LoadingComponent'; import LoadingComponent from '../BeerById/LoadingComponent';
import CommentCardBody from '../BeerById/CommentCardBody'; import CommentCardBody from '../BeerBreweryComments/CommentCardBody';
interface CommentsComponentProps { interface CommentsComponentProps {
commentSectionRef: MutableRefObject<HTMLDivElement | null>; commentSectionRef: MutableRefObject<HTMLDivElement | null>;