diff --git a/client/src/App.tsx b/client/src/App.tsx index f3f1d1f..6c48769 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -3,6 +3,7 @@ import './App.scss'; import HomePage from './pages/HomePage'; import LocationPage from './pages/LocationPage'; import LocationEditPage from './pages/LocationEditPage'; +import WriteReviewPage from './pages/WriteReviewPage'; import ProfilePage from './pages/ProfilePage'; import Header from './components/Header'; import Footer from './components/Footer'; @@ -25,6 +26,7 @@ function App() { + diff --git a/client/src/pages/LocationPage/CommentSection/Comment.tsx b/client/src/pages/LocationPage/CommentSection/Comment.tsx deleted file mode 100644 index 9496da4..0000000 --- a/client/src/pages/LocationPage/CommentSection/Comment.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import MoreHorizIcon from '@mui/icons-material/MoreHoriz'; -import { IconButton } from '@mui/material'; -import './Comment.scss'; - -export type CommentType = { - id: string; - body: string; - username: string; - userId: string; - createdAt: string; - photo: string; -}; - -const Comment = ({ comm }: { comm: CommentType }) => { - console.log(comm); - return ( -
  • -
    -
    -
    -
    - profile -
    -
    -
    {comm.username}
    -
    {comm.createdAt}
    -
    -
    -
    -
    - - - -
    -
    -
    -

    {comm.body}

    -
    -
  • - ); -}; - -export default Comment; diff --git a/client/src/pages/LocationPage/CommentSection/CommentForm.tsx b/client/src/pages/LocationPage/CommentSection/CommentForm.tsx deleted file mode 100644 index 8339b06..0000000 --- a/client/src/pages/LocationPage/CommentSection/CommentForm.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { useState } from 'react'; - -const CommentForm = (handleSubmit: (text: string) => void) => { - const [text, setText] = useState(''); - const onSubmit = (event: any) => { - event.preventDefault(); - handleSubmit(text); - }; - return ( -
    -