Skip to content

Commit

Permalink
Update deploy routes
Browse files Browse the repository at this point in the history
  • Loading branch information
K0ppai committed Jan 30, 2024
1 parent 15692b8 commit ff1e152
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const Navbar = () => {
onClick={() => {
handleLogout();
}}
className="block cursor-pointer px-4 py-4 text-[18px] font-bold transition-all duration-200 ease-in-out hover:bg-primary/80"
className="block px-4 py-4 text-[18px] font-bold hover:bg-primary/80 transition-all ease-in-out duration-200 cursor-pointer"
>
Sign Out
</a>
Expand Down
8 changes: 4 additions & 4 deletions src/redux/authenticationSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const initialState = {
user_id: ''
};

const LOGIN_URL = 'https://beta-yacht-rental.onrender.com/login';
const LOGOUT_URL = 'https://beta-yacht-rental.onrender.com/logout';
const SIGNUP_URL = 'https://beta-yacht-rental.onrender.com/signup';
const CURRENTUSER_URL = 'https://beta-yacht-rental.onrender.com/current_user';
const LOGIN_URL = 'https://yacht-rental-b1c14a12245e.herokuapp.com/login';
const LOGOUT_URL = 'https://yacht-rental-b1c14a12245e.herokuapp.com/logout';
const SIGNUP_URL = 'https://yacht-rental-b1c14a12245e.herokuapp.com/signup';
const CURRENTUSER_URL = 'https://yacht-rental-b1c14a12245e.herokuapp.com/current_user';

export const signUp = createAsyncThunk('user/signup', async (newUser) => {
const response = await axios.post(`${SIGNUP_URL}`, newUser);
Expand Down
2 changes: 1 addition & 1 deletion src/redux/citySlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const initialState = {
}

export const fetchCities = createAsyncThunk('fetch/cities', async () => {
const response = await axios.get('https://beta-yacht-rental.onrender.com/cities');
const response = await axios.get('https://yacht-rental-b1c14a12245e.herokuapp.com/cities');
return response.data
})

Expand Down
2 changes: 1 addition & 1 deletion src/redux/detailsSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const initialState = {
};


const url = 'https://beta-yacht-rental.onrender.com/yachts';
const url = 'https://yacht-rental-b1c14a12245e.herokuapp.com/yachts';

export const fetchYachtDetails = createAsyncThunk(
'details/fetchYachtDetails',
Expand Down
6 changes: 3 additions & 3 deletions src/redux/reserveSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ const initialState = {
};

export const fetchReservations = createAsyncThunk('fetch/reservations', async () => {
const response = await axios.get('https://beta-yacht-rental.onrender.com/reservations');
const response = await axios.get('https://yacht-rental-b1c14a12245e.herokuapp.com/reservations');
return response.data;
});

export const postReservations = createAsyncThunk('post/reservations', async (newReservation) => {
const response = await axios.post('https://beta-yacht-rental.onrender.com/reservations', newReservation);
const response = await axios.post('https://yacht-rental-b1c14a12245e.herokuapp.com/reservations', newReservation);
return response.data;
});

export const deleteReservation = createAsyncThunk('delete/reservations', async (id) => {
const response = await axios.delete(`https://beta-yacht-rental.onrender.com/reservations/${id}`);
const response = await axios.delete(`https://yacht-rental-b1c14a12245e.herokuapp.com/reservations/${id}`);
return response.data.id;
});

Expand Down
6 changes: 3 additions & 3 deletions src/redux/yachtSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ const initialState = {
};

export const deleteYacht = createAsyncThunk("yacht/delete", async (id) => {
const response = await axios.delete(`https://beta-yacht-rental.onrender.com/yachts/${id}`);
const response = await axios.delete(`https://yacht-rental-b1c14a12245e.herokuapp.com/yachts/${id}`);
return response.data.id;
});

export const postYacht = createAsyncThunk('post/yacht', async (params) => {
const response = await axios.post('https://beta-yacht-rental.onrender.com/yachts', params);
const response = await axios.post('https://yacht-rental-b1c14a12245e.herokuapp.com/yachts', params);
return response.data;
});

export const fetchYachts = createAsyncThunk("Main/yachts", async () => {
const response = await axios.get("https://beta-yacht-rental.onrender.com/yachts");
const response = await axios.get("https://yacht-rental-b1c14a12245e.herokuapp.com/yachts");
return response.data;
});

Expand Down

0 comments on commit ff1e152

Please sign in to comment.