Skip to content

Commit

Permalink
Fix: fix api links
Browse files Browse the repository at this point in the history
  • Loading branch information
androidmini9x committed May 5, 2022
1 parent 46909fa commit 3abb3bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
REACT_APP_JWT_SECRET="PiIBwTJNNv1K+Dc+Qj8ZaGFt4uWxyyc5sRW9b4NgPRUhD3hIeWY/smAsRikAkGUqFynGlJ+BPBXm2Yu3iw6r/Lv7lbj7J1q6/zl7nrwwv/g07Kaj1EF5qNOpBC6Gp2RfU33Q+xrRZmu7fcjLP2gI91s1iBf3AZ1WobhOiZ55ASaPy8ez8bE7NkBkWffzI/jwHuJWMxcBQfRL1AJ+kpPem0auwy49B9mz4zEcHsRK7SqJ2VLAFnxtwVFbxwV/tX+rAmDtG9BDwMNb2RojqQbOSj3nL/1VQpYIXrvNTqTQONWapKFGCpDf98xcOnQLXIsmLRLPU+WgJslHXgFlLe8EXA=="
REACT_APP_API_URI="https://payingitforward.re-coded.com/api"
REACT_APP_API_URI="https://payitapi.herokuapp.com/api"
REACT_APP_API_URI2="https://payingitforward.re-coded.com/api"
4 changes: 3 additions & 1 deletion src/components/Footer/FooterResourcesLinks.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
import { CONTACT_US } from '../../routes';

export default function FooterResourcesLinks() {
const { t } = useTranslation(['common']);
Expand All @@ -13,7 +15,7 @@ export default function FooterResourcesLinks() {
<a href="#!">{t('termsAndConditions')}</a>
</li>
<li>
<a href="#!">{t('contactUs')}</a>
<Link to={CONTACT_US}>{t('contactUs')}</Link>
</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Request/ItemCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function ItemCard({ data, onResponse }) {
setLoading(true);

axios
.post(
.put(
`${process.env.REACT_APP_API_URI}/items/donate`,
JSON.stringify({
donateItemId: data._id,
Expand Down

0 comments on commit 3abb3bf

Please sign in to comment.