Various code improvements and comments + remove unneeded components

This commit is contained in:
Ray 2024-01-15 05:06:39 +00:00 committed by GitHub
parent a5ac7ac5e4
commit 73808c2be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View File

@ -6,8 +6,6 @@ import { useState, useEffect } from "react"
import { import {
getFirestore, getFirestore,
collection, collection,
query,
where,
getDoc, getDoc,
getDocs, getDocs,
doc doc

View File

@ -1,4 +1,4 @@
// import required component // TO DO: Create Contact page with contact form

View File

@ -1,11 +1,11 @@
// import required modules
import Row from 'react-bootstrap/Row'; import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col'; import Col from 'react-bootstrap/Col';
import Form from 'react-bootstrap/Form';
import Container from "react-bootstrap/Container"; import Container from "react-bootstrap/Container";
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { useParams } from 'react-router-dom'; import { useParams } from 'react-router-dom';
import { ItemImage } from '../components/ItemImage'; import { ItemImage } from '../components/ItemImage';
import Button from 'react-bootstrap/Button';
export function Detail(props) { export function Detail(props) {
const [artworkData, setArtworkData] = useState() const [artworkData, setArtworkData] = useState()
@ -19,6 +19,8 @@ export function Detail(props) {
}, [id]) }, [id])
// Container to show information and artwork itself
if (artworkData) { if (artworkData) {
return ( return (
<Container> <Container>

View File

@ -31,6 +31,8 @@ export function Gallery(props) {
) )
}) })
// Container to show artworks in gallery like format.
return ( return (
<Container> <Container>
<Row> <Row>