Skip to content

Commit

Permalink
remove unneeded variable for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
NwinNwin committed Aug 11, 2023
1 parent 7cca558 commit d70b8c7
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 36 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ jobs:
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v1
- run: npm install
- run: npm run build

- 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
1 change: 0 additions & 1 deletion src/components/CreateModal/CreateModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
1 change: 0 additions & 1 deletion src/components/Filter/Filter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
DrawerHeader,
DrawerOverlay,
DrawerContent,
DrawerCloseButton,
Button,
} from "@chakra-ui/react";
import "./Filter.css";
Expand Down
18 changes: 9 additions & 9 deletions src/components/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
10 changes: 5 additions & 5 deletions src/components/InfoModal/InfoModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
27 changes: 12 additions & 15 deletions src/components/Login/Login.jsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -24,7 +16,6 @@ export default function Login() {
}
}


return (
<Stack
width={"100vw"}
Expand All @@ -42,9 +33,15 @@ export default function Login() {
/>
</Center>
<Heading fontSize={"3xl"} py="20px">
{isSignUp ? "Create ZotnFound Account" : "Welcome Back Anteater!"}
{/* {isSignUp ? "Create ZotnFound Account" : "Welcome Back Anteater!"} */}
</Heading>
<Button onClick={signInGoogle} colorScheme={"green"} variant={"solid"}>SIGN IN WITH UCI</Button>
<Button
onClick={signInGoogle}
colorScheme={"green"}
variant={"solid"}
>
SIGN IN WITH UCI
</Button>
</Stack>
</Flex>
<Flex flex={1}>
Expand Down
3 changes: 1 addition & 2 deletions src/components/LoginModal/LoginModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function Map({
}
},
}),
[]
[position, setPosition]
);

async function handleSubmit() {
Expand Down

0 comments on commit d70b8c7

Please sign in to comment.