Skip to content
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
2 changes: 1 addition & 1 deletion src/front/components/Admin/Leads.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useEffect, useReducer } from "react";
import storeReducer, { initialStore } from "../../store";

const fetchAllLeads = async (dispatch) => {
const apiUrl = import.meta.env.VITE_BACKEND_URL;
const apiUrl = "";
dispatch({ type: 'GET_ALL_LEADS_START' })
try {
const response = await fetch(`${apiUrl}/api/leads`)
Expand Down
2 changes: 1 addition & 1 deletion src/front/components/HeaderContact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const HeaderContact = () => {
});

const { status, error } = store.contactForm;
const apiUrl = import.meta.env.VITE_BACKEND_URL;
const apiUrl = "";

useEffect(() => {
if (status === 'success') {
Expand Down
2 changes: 1 addition & 1 deletion src/front/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AppContext } from "./Layout"
import yellowLogo from '../assets/img/LogoNavbar.svg'

const adminLogin = async (dispatch, loginData) => {
const apiUrl = import.meta.env.VITE_BACKEND_URL;
const apiUrl = "";
dispatch({ type: 'ADMIN_LOGIN_START' })
try {
const response = await fetch(`${apiUrl}/api/admin/login`, {
Expand Down