File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { useEffect, useReducer } from "react";
33import storeReducer , { initialStore } from "../../store" ;
44
55const 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` )
Original file line number Diff line number Diff 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' ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { AppContext } from "./Layout"
55import yellowLogo from '../assets/img/LogoNavbar.svg'
66
77const 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` , {
You can’t perform that action at this time.
0 commit comments