diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5063d3d..bf3e3b9 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -11,9 +11,17 @@ jobs: strategy: matrix: node-version: [16.x] - + steps: - uses: actions/checkout@v1 - run: npm install - run: npm run build - \ No newline at end of file + - uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read --follow-symlinks --delete + env: + AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-2" # optional: defaults to us-east-1 + SOURCE_DIR: "build" # optional: defaults to entire repository diff --git a/src/components/CreateModal/CreateModal.jsx b/src/components/CreateModal/CreateModal.jsx index e55bdcc..7f3d273 100644 --- a/src/components/CreateModal/CreateModal.jsx +++ b/src/components/CreateModal/CreateModal.jsx @@ -22,7 +22,6 @@ import { import upload from "../../assets/images/download.png"; import { storage } from "../../firebase"; import { ref, uploadBytes, getDownloadURL } from "firebase/storage"; -import { AddIcon } from "@chakra-ui/icons"; import { UserAuth } from "../../context/AuthContext"; import DataContext from "../../context/DataContext"; diff --git a/src/components/Filter/Filter.jsx b/src/components/Filter/Filter.jsx index 66da335..9001308 100644 --- a/src/components/Filter/Filter.jsx +++ b/src/components/Filter/Filter.jsx @@ -15,7 +15,6 @@ import { DrawerHeader, DrawerOverlay, DrawerContent, - DrawerCloseButton, Button, } from "@chakra-ui/react"; import "./Filter.css"; diff --git a/src/components/Home/Home.jsx b/src/components/Home/Home.jsx index 95b61c6..5a4666e 100644 --- a/src/components/Home/Home.jsx +++ b/src/components/Home/Home.jsx @@ -73,17 +73,17 @@ export default function Home() { ); } - function formatDate() { - var d = new Date(), - month = "" + (d.getMonth() + 1), - day = "" + d.getDate(), - year = d.getFullYear(); + // function formatDate() { + // var d = new Date(), + // month = "" + (d.getMonth() + 1), + // day = "" + d.getDate(), + // year = d.getFullYear(); - if (month.length < 2) month = "0" + month; - if (day.length < 2) day = "0" + day; + // if (month.length < 2) month = "0" + month; + // if (day.length < 2) day = "0" + day; - return [year, month, day].join("-"); - } + // return [year, month, day].join("-"); + // } const [loading, setLoading] = useState(false); diff --git a/src/components/InfoModal/InfoModal.jsx b/src/components/InfoModal/InfoModal.jsx index 63fee7c..a0e9a45 100644 --- a/src/components/InfoModal/InfoModal.jsx +++ b/src/components/InfoModal/InfoModal.jsx @@ -27,11 +27,11 @@ export default function InfoModal({ setData, isOpen, onClose, props }) { const { user } = UserAuth(); const currentEmail = user?.email; - function viewEmail() { - if (user) { - setShowEmail(true); - } - } + // function viewEmail() { + // if (user) { + // setShowEmail(true); + // } + // } async function handleDelete() { onClose(); diff --git a/src/components/Login/Login.jsx b/src/components/Login/Login.jsx index e8117fc..7638b6a 100644 --- a/src/components/Login/Login.jsx +++ b/src/components/Login/Login.jsx @@ -1,20 +1,12 @@ -import React, { useContext } from "react"; -import { - Button, - Flex, - Heading, - Stack, - Image, - Center, -} from "@chakra-ui/react"; +import React from "react"; +import { Button, Flex, Heading, Stack, Image, Center } from "@chakra-ui/react"; import logo from "../../assets/images/logo.png"; -import { useNavigate } from "react-router-dom"; import wallpaper from "../../assets/images/wallpaper.png"; import { UserAuth } from "../../context/AuthContext"; export default function Login() { - const [isSignUp, setIsSignUp] = React.useState(false); - const { googleSignIn} = UserAuth(); + // const [isSignUp, setIsSignUp] = React.useState(false); + const { googleSignIn } = UserAuth(); async function signInGoogle() { try { @@ -24,7 +16,6 @@ export default function Login() { } } - return ( - {isSignUp ? "Create ZotnFound Account" : "Welcome Back Anteater!"} + {/* {isSignUp ? "Create ZotnFound Account" : "Welcome Back Anteater!"} */} - + diff --git a/src/components/LoginModal/LoginModal.jsx b/src/components/LoginModal/LoginModal.jsx index bcfed2b..638c67c 100644 --- a/src/components/LoginModal/LoginModal.jsx +++ b/src/components/LoginModal/LoginModal.jsx @@ -20,8 +20,7 @@ import google_logo from "../../assets/logos/google_logo.png"; import { UserAuth } from "../../context/AuthContext"; export default function LoginModal() { - const { isLoginModalOpen, onLoginModalClose, onLoginModalOpen } = - useContext(DataContext); + const { isLoginModalOpen, onLoginModalClose } = useContext(DataContext); const { googleSignIn, user } = UserAuth(); async function signInGoogle() { diff --git a/src/components/Map/Map.jsx b/src/components/Map/Map.jsx index e86bb9f..e460654 100644 --- a/src/components/Map/Map.jsx +++ b/src/components/Map/Map.jsx @@ -104,7 +104,7 @@ export default function Map({ } }, }), - [] + [position, setPosition] ); async function handleSubmit() {