@campxdev/shared 0.2.11 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -32,8 +32,11 @@ export default function UserBox({
32
32
  }
33
33
 
34
34
  setPosting(true)
35
- axios
36
- .post(`${process.env.REACT_APP_API_HOST}/auth/logout`)
35
+ axios({
36
+ method: 'POST',
37
+ baseURL: process.env.REACT_APP_API_HOST,
38
+ url: '/auth/logout',
39
+ })
37
40
  .then((res) => {
38
41
  setPosting(false)
39
42
  window.location.href = '/'
@@ -103,7 +103,8 @@ export function LoginForm() {
103
103
  const onSubmit = async (values) => {
104
104
  try {
105
105
  const res = await axiosBase({
106
- baseURL: process.env.REACT_APP_API_URL,
106
+ method: 'POST',
107
+ baseURL: process.env.REACT_APP_API_HOST,
107
108
  url: '/auth/login',
108
109
  data: {
109
110
  values,