Skip to content

Commit

Permalink
added url backend call
Browse files Browse the repository at this point in the history
  • Loading branch information
dishant440 committed Jul 3, 2024
1 parent 7cd9b3e commit cbb69e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/hooks/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState, useEffect } from "react";
import axios from "axios";

const backend_url = "http://localhost:8080";
import { BASE_URL } from "../../services/connect";
const backend_url = BASE_URL;

export const useFetchCustomer = () => {
const [customerData, setCustomerData] = useState([]);
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/pages/Transfer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import Loading from '../components/Loading';
import Error from '../components/Error';
import Button from '../components/Button';
import { useNavigate } from "react-router-dom";
import { BASE_URL } from '../../services/connect';

const backendurl = "http://localhost:8080"

const backendurl = BASE_URL

export default function TransferHistory() {
const [transferData, setTransferData] = useState([]);
Expand Down

0 comments on commit cbb69e8

Please sign in to comment.