Skip to content

Commit a86a68c

Browse files
authored
Merge pull request #34 from Cloudtech-web-dev/dev
backendurl fixed
2 parents 6769db9 + d74dfeb commit a86a68c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/front/components/Admin/Leads.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useEffect, useReducer } from "react";
33
import storeReducer, { initialStore } from "../../store";
44

55
const fetchAllLeads = async (dispatch) => {
6-
const apiUrl = import.meta.env.VITE_BACKEND_URL;
6+
const apiUrl = "";
77
dispatch({ type: 'GET_ALL_LEADS_START' })
88
try {
99
const response = await fetch(`${apiUrl}/api/leads`)

src/front/components/HeaderContact.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const HeaderContact = () => {
1818
});
1919

2020
const { status, error } = store.contactForm;
21-
const apiUrl = import.meta.env.VITE_BACKEND_URL;
21+
const apiUrl = "";
2222

2323
useEffect(() => {
2424
if (status === 'success') {

src/front/pages/Login.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { AppContext } from "./Layout"
55
import yellowLogo from '../assets/img/LogoNavbar.svg'
66

77
const adminLogin = async (dispatch, loginData) => {
8-
const apiUrl = import.meta.env.VITE_BACKEND_URL;
8+
const apiUrl = "";
99
dispatch({ type: 'ADMIN_LOGIN_START' })
1010
try {
1111
const response = await fetch(`${apiUrl}/api/admin/login`, {

0 commit comments

Comments
 (0)