Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commit fix #123

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
7 changes: 2 additions & 5 deletions frontend/src/pages/Accueil.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Link } from "react-router-dom";
import Button from "@mui/material/Button";
import img from "../assets/Cooking.svg";
import "./style/Accueil.scss";

function Accueil() {
Expand All @@ -24,11 +25,7 @@ function Accueil() {
};
return (
<div className="body-content accueil-page">
<img
className="image_cuisto"
src="../src/assets/cooking.svg"
alt="image_cuisto"
/>
<img className="image_cuisto" src={img} alt="image_cuisto" />
<p>
Bienvenu sur notre site Eating-Nam-Nam. Il s'agit d'un site de cuisine
dans lequel vous créez vos propres recettes et pouvez accéder à celles
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/CreateRecipe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export default function CreateRecipe() {

useEffect(() => {
const endpoints = [
"http://localhost:3310/api/ingredients",
"http://localhost:3310/api/tags",
`${import.meta.env.VITE_BACKEND_URL}/api/ingredients`,
`${import.meta.env.VITE_BACKEND_URL}/api/tags`,
];
Promise.all(
endpoints.map((endpoint) =>
Expand Down
Loading