Various code improvements and comments + remove unneeded components
This commit is contained in:
parent
a5ac7ac5e4
commit
73808c2be6
|
@ -6,8 +6,6 @@ import { useState, useEffect } from "react"
|
||||||
import {
|
import {
|
||||||
getFirestore,
|
getFirestore,
|
||||||
collection,
|
collection,
|
||||||
query,
|
|
||||||
where,
|
|
||||||
getDoc,
|
getDoc,
|
||||||
getDocs,
|
getDocs,
|
||||||
doc
|
doc
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// import required component
|
// TO DO: Create Contact page with contact form
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -31,6 +31,8 @@ export function Gallery(props) {
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// Container to show artworks in gallery like format.
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<Row>
|
<Row>
|
||||||
|
|
Loading…
Reference in New Issue