Skip to content

Commit

Permalink
get rent info
Browse files Browse the repository at this point in the history
  • Loading branch information
Lor3wp committed Dec 6, 2023
1 parent 534e592 commit 839c089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/components/BankButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useNavigate } from 'react-router-dom';
import { Trans, useTranslation } from 'react-i18next';
import useApi from '../hooks/useApi';
import { useStepper } from '../hooks/useStepper';
const BankButton = ({ logo, bankName, rentId, randomUUID }) => {
const BankButton = ({ logo, bankName, randomUUID }) => {
const [showWarningModal, setShowWarningModal] = useState(false);

const navigate = useNavigate();
Expand Down Expand Up @@ -91,7 +91,6 @@ const BankButton = ({ logo, bankName, rentId, randomUUID }) => {
BankButton.propTypes = {
logo: PropTypes.any.isRequired,
bankName: PropTypes.string,
rentId: PropTypes.string.isRequired,
randomUUID: PropTypes.string.isRequired,
};

Expand Down
6 changes: 1 addition & 5 deletions src/utils/axios.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import axios from 'axios';
import { NODE_ENV, PUBLIC_DOMAIN, PUBLIC_PORT } from './constants';

const baseURL =
NODE_ENV === 'production'
? 'https://hsytrailerapi.azurewebsites.net/api/'
: `http://${PUBLIC_DOMAIN ?? 'localhost'}:${PUBLIC_PORT ?? '3000'}/api/`;
const baseURL = 'https://hsytrailerapi.azurewebsites.net/api/';

const axiosInstance = axios.create({
baseURL: baseURL,
Expand Down

0 comments on commit 839c089

Please sign in to comment.