Skip to content

Commit

Permalink
fix: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirDegt committed Apr 17, 2024
1 parent b41636a commit 41f1a3b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Тестове завдання [Test task](docs/test_task.md)
## Тестове завдання: [test task](docs/test_task.md)

## Запуск проєкту

Expand Down
2 changes: 1 addition & 1 deletion src/features/CardList/CardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const CardList = () => {

useEffect(() => {
setIsLoadingServer(true);
axios.get('http://localhost:3002/camper/all')
axios.get('http://localhost:3002/camper/all')
// axios.get('https://camper-haven-rentals-back.onrender.com/camper/all')
.then(response => {
setCamper(response.data);
Expand Down
2 changes: 1 addition & 1 deletion src/features/FavoriteList/FavoriteList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const FavoriteList = () => {
useEffect(() => {
setIsLoadingServer(true);
axios.get('http://localhost:3002/camper/allFavorite')
// axios.get('https://camper-haven-rentals-back.onrender.com/camper/allFavorite')
// axios.get('https://camper-haven-rentals-back.onrender.com/camper/allFavorite')
.then(response => {
setCamper(response.data);
})
Expand Down
4 changes: 2 additions & 2 deletions src/shared/ui/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const dispatch = useDispatch();
const handleClickHeart = () => {
if (!favorite) {
setIsDisabled(true);
// axios.post('http://localhost:3002/camper/create', {itemFavorite: item._id})
// axios.post('http://localhost:3002/camper/create', {itemFavorite: item._id})
axios.post('https://camper-haven-rentals-back.onrender.com/camper/create', {itemFavorite: item._id})
.then(response => {
dispatch(campersActions.updateCamperFavorite(response.data))
Expand All @@ -47,7 +47,7 @@ const dispatch = useDispatch();
}
if (favorite) {
setIsDisabled(true);
// axios.delete(`http://localhost:3002/camper/delete/${item._id}` )
// axios.delete(`http://localhost:3002/camper/delete/${item._id}` )
axios.delete(`https://camper-haven-rentals-back.onrender.com/camper/delete/${item._id}`)
.then(response => {
dispatch(campersActions.updateCamperFavorite(response.data))
Expand Down

0 comments on commit 41f1a3b

Please sign in to comment.