Skip to content

Commit

Permalink
fix: resolved eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagarjuna0033 committed Dec 14, 2024
1 parent 7114aa4 commit d26fdf8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/SignInCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { styled } from "@mui/material/styles";
import GoogleIcon from "@mui/icons-material/Google";
import logo from "../images/rguktLogo.png";
import { handleUserLogin } from "../firebaseUtils/login";
import { ToastContainer } from "react-toastify";
import { toast } from "react-toastify";
const Card = styled(MuiCard)(({ theme }) => ({
display: "flex",
Expand Down
2 changes: 2 additions & 0 deletions src/components/TodayMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function MenuCard() {

const [todayMenu, setTodaysMenu] = useState([]);
const [isLoading, setIsLoading] = useState(true);
// eslint-disable-next-line no-unused-vars
const [menuItemsFromWeb, setMenu] = useState({});

const fetchMenuData = async () => {
Expand Down Expand Up @@ -85,6 +86,7 @@ function MenuCard() {
(async () => {
await getData();
})();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

if (isLoading) {
Expand Down
1 change: 1 addition & 0 deletions src/firebaseUtils/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const handleUserLogin = async () => {
try {
const result = await signInWithPopup(auth, provider);
const credential = GoogleAuthProvider.credentialFromResult(result);
// eslint-disable-next-line no-unused-vars
const token = credential.accessToken;
const user = result.user;

Expand Down
1 change: 1 addition & 0 deletions src/pages/ChangeMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default function Menu() {
(async () => {
await getData();
})();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const navigate = useNavigate();
Expand Down
1 change: 1 addition & 0 deletions src/pages/EditMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export default function EditMenu() {

useEffect(() => {
getData();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const handleInputChange = (e, dayIndex, mealType) => {
Expand Down

0 comments on commit d26fdf8

Please sign in to comment.