File tree Expand file tree Collapse file tree 12 files changed +16
-21
lines changed Expand file tree Collapse file tree 12 files changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ const AgrTr = () => {
7
7
const [ error , setError ] = useState ( null ) ;
8
8
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
9
9
10
- const apiUrl = process . env . BACKEND_URL || 'http://localhost:3001' ;
11
-
10
+ const apiUrl = process . env . BACKEND_URL || 'https://app-agenda-sdc-backend.onrender.com' ;
12
11
const toggleMenu = ( ) => {
13
12
setIsMenuOpen ( ! isMenuOpen ) ;
14
13
} ;
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ const EdicionAgrTr = () => {
10
10
const [ estados , setEstados ] = useState ( [ ] ) ;
11
11
const [ selectedTrabajo , setSelectedTrabajo ] = useState ( null ) ; // Para almacenar el trabajo que se edita
12
12
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
13
- const apiUrl = process . env . BACKEND_URL || 'http://localhost:3001' ;
14
-
13
+ const apiUrl = process . env . BACKEND_URL || 'https://app-agenda-sdc-backend.onrender.com' ;
15
14
// Toggle de menú
16
15
const toggleMenu = ( ) => {
17
16
setIsMenuOpen ( ! isMenuOpen ) ;
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ const ResumenAgrTr = () => {
9
9
const [ clientes , setClientes ] = useState ( [ ] ) ;
10
10
const [ estados , setEstados ] = useState ( [ ] ) ;
11
11
12
- const apiUrl = process . env . BACKEND_URL || 'http ://localhost:3001 ' ;
13
-
12
+ const apiUrl = process . env . BACKEND_URL || 'https ://app-agenda-sdc-backend.onrender.com ' ;
13
+
14
14
// Estado para controlar la visibilidad del menú
15
15
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
16
16
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ const AgregarTrabajos = () => {
30
30
const [ selectedPlanilla , setSelectedPlanilla ] = useState ( "" ) ;
31
31
const [ clientes , setClientes ] = useState ( [ ] ) ;
32
32
33
- const apiUrl = process . env . BACKEND_URL || 'http ://localhost:3001 ' ;
34
-
33
+ const apiUrl = process . env . BACKEND_URL || 'https ://app-agenda-sdc-backend.onrender.com ' ;
34
+
35
35
useEffect ( ( ) => {
36
36
const fetchClientes = async ( ) => {
37
37
try {
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const Amojonamientos = () => {
6
6
const [ loading , setLoading ] = useState ( true ) ;
7
7
const [ error , setError ] = useState ( null ) ;
8
8
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
9
- const apiUrl = process . env . BACKEND_URL || 'http ://localhost:3001 ' ;
10
-
9
+ const apiUrl = process . env . BACKEND_URL || 'https ://app-agenda-sdc-backend.onrender.com ' ;
10
+
11
11
const toggleMenu = ( ) => {
12
12
setIsMenuOpen ( ! isMenuOpen ) ;
13
13
} ;
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ const Amojonamientos = () => {
11
11
const [ selectedTrabajo , setSelectedTrabajo ] = useState ( null ) ; // Para almacenar el trabajo que se edita
12
12
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
13
13
14
- const apiUrl = process . env . BACKEND_URL || 'http://localhost:3001' ;
15
-
14
+ const apiUrl = process . env . BACKEND_URL || 'https://app-agenda-sdc-backend.onrender.com' ;
16
15
17
16
// Toggle de menú
18
17
const toggleMenu = ( ) => {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const Amojonamientos = () => {
9
9
const [ clientes , setClientes ] = useState ( [ ] ) ;
10
10
const [ estados , setEstados ] = useState ( [ ] ) ;
11
11
12
- const apiUrl = process . env . BACKEND_URL || 'http ://localhost:3001 ' ;
12
+ const apiUrl = process . env . BACKEND_URL || 'https ://app-agenda-sdc-backend.onrender.com ' ;
13
13
14
14
// Estado para controlar la visibilidad del menú
15
15
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ const ArrozTopo = () => {
6
6
const [ trabajos , setTrabajos ] = useState ( [ ] ) ;
7
7
const [ loading , setLoading ] = useState ( [ ] ) ;
8
8
const [ error , setError ] = useState ( null ) ;
9
- const apiUrl = process . env . BACKEND_URL || 'http://localhost:3001' ;
10
-
9
+ const apiUrl = process . env . BACKEND_URL || 'https://app-agenda-sdc-backend.onrender.com' ;
11
10
// Estado para controlar la visibilidad del menú
12
11
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
13
12
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ const EdiccionTopo = () => {
11
11
const [ estados , setEstados ] = useState ( [ ] ) ;
12
12
const [ selectedTrabajo , setSelectedTrabajo ] = useState ( null ) ; // Para almacenar el trabajo que se edita
13
13
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
14
- const apiUrl = process . env . BACKEND_URL || 'http://localhost:3001' ;
15
-
14
+ const apiUrl = process . env . BACKEND_URL || 'https://app-agenda-sdc-backend.onrender.com' ;
16
15
// Toggle de menú
17
16
const toggleMenu = ( ) => {
18
17
setIsMenuOpen ( ! isMenuOpen ) ;
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const ResumenTopo= () => {
8
8
9
9
const [ clientes , setClientes ] = useState ( [ ] ) ;
10
10
const [ estados , setEstados ] = useState ( [ ] ) ;
11
- const apiUrl = process . env . BACKEND_URL || 'http ://localhost:3001 ' ;
12
- // Estado para controlar la visibilidad del menú
11
+ const apiUrl = process . env . BACKEND_URL || 'https ://app-agenda-sdc-backend.onrender.com ' ;
12
+ // // Estado para controlar la visibilidad del menú
13
13
const [ isMenuOpen , setIsMenuOpen ] = useState ( false ) ;
14
14
15
15
// Función para cambiar el estado de visibilidad del menú
You can’t perform that action at this time.
0 commit comments