diff --git a/client/src/Pages/Contact.jsx b/client/src/Pages/Contact.jsx index 9f592653..7e6b31f7 100644 --- a/client/src/Pages/Contact.jsx +++ b/client/src/Pages/Contact.jsx @@ -1,7 +1,7 @@ import React, { useEffect, useState } from "react"; import Preloader from "../Components/Preloader"; import { FaLinkedin, FaGithub, FaEnvelope, FaPhoneAlt } from "react-icons/fa"; -// import "./Contact.css"; + function Contact() { const [formData, setFormData] = useState({ name: "", diff --git a/client/src/Pages/Home.jsx b/client/src/Pages/Home.jsx index 12921475..dcbb5aef 100644 --- a/client/src/Pages/Home.jsx +++ b/client/src/Pages/Home.jsx @@ -312,6 +312,4 @@ const Home = () => { ); }; -export default Home; - - +export default Home; \ No newline at end of file diff --git a/client/src/Pages/Licensing.jsx b/client/src/Pages/Licensing.jsx index 5a87390a..78f4ac96 100644 --- a/client/src/Pages/Licensing.jsx +++ b/client/src/Pages/Licensing.jsx @@ -38,24 +38,4 @@ const License = () => { ); }; -// const LicenseWrapper = styled.div` -// padding: 20px; -// max-width: 800px; -// margin: 0 auto; -// color: #333; -// line-height: 1.6; -// margin-top: 20px; - -// h1 { -// font-size: 2.5rem; -// margin-bottom: 20px; -// font-weight: bold; -// color: #002147; -// } - -// p { -// margin: 10px 0; -// } -// `; - export default License; diff --git a/client/src/Pages/LoginPage.jsx b/client/src/Pages/LoginPage.jsx index 6d51530a..965f13df 100644 --- a/client/src/Pages/LoginPage.jsx +++ b/client/src/Pages/LoginPage.jsx @@ -1,6 +1,4 @@ import React, { useState } from "react"; -// import TextField from "@mui/material/TextField"; -// import Button from "@mui/material/Button"; import IconButton from "@mui/material/IconButton"; // Import IconButton import VisibilityIcon from "@mui/icons-material/Visibility"; // Import VisibilityIcon import VisibilityOffIcon from "@mui/icons-material/VisibilityOff"; // Import VisibilityOffIcon diff --git a/client/src/Pages/Newarrivals.js b/client/src/Pages/Newarrivals.js index 3d497ac5..39b8a5da 100644 --- a/client/src/Pages/Newarrivals.js +++ b/client/src/Pages/Newarrivals.js @@ -63,53 +63,6 @@ export const books = [ ]; function Newarrivals({ onBookClick, highlightedBookId }) { - // const bookRefs = useRef({}); - - - // const fetchRandomBooks = async () => { - // setIsLoading(true); - // try { - // const randomStartIndex = Math.floor(Math.random() * 100); - // const response = await fetch(`https://www.googleapis.com/books/v1/volumes?q=subject:fiction&maxResults=7&startIndex=${randomStartIndex}`); - - // if (!response.ok) { - // throw new Error('HTTP Error! Status: ' + response.status); - // } - - // const data = await response.json(); - // console.log(data); - - - // if (data.items) { - - // const formattedBooks = data.items.map(item => ({ - // id: item.id, - // bookTitle: item.volumeInfo.title, - // authorName: item.volumeInfo.authors ? item.volumeInfo.authors[0] : 'Unknown Author', - // imageURL: item.volumeInfo.imageLinks ? item.volumeInfo.imageLinks.thumbnail : 'https://via.placeholder.com/128x193.png', - // category: item.volumeInfo.categories ? item.volumeInfo.categories[0] : 'Fiction' - // })); - // setBooks(formattedBooks); - // } - // else { - // setError('No books found'); - // } - // } - // catch (error) { - // console.error('Error fetching books: ', error); - // setError('Falied to fetch books'); - // } - // finally { - // setIsLoading(false); - // } - // }; - - // if (isLoading) { - // return