integrate firebase

This commit is contained in:
Janis Meister
2023-05-24 19:08:14 +02:00
parent 219b1705c1
commit 92dfab2ada
11 changed files with 1769 additions and 4718 deletions

View File

@@ -13,7 +13,7 @@ function DiashowHomePage(props) {
useEffect(() => {
async function getImages() {
const data = await getDocs(diashowImagesCollectionRef);
console.log(data);
const urls = [];
data.docs.forEach((doc) => {
urls.push(doc.data().url);
@@ -32,6 +32,7 @@ function DiashowHomePage(props) {
return (
<div className="diashow-div">
{console.log(imageSrc)}
{imageSrc?.length > 0 ? (
<SimpleImageSlider
width={"100%"}