@campxdev/shared 1.1.6 → 1.1.7

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": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -2,7 +2,7 @@ import { InsertPhotoOutlined } from '@mui/icons-material'
2
2
  import { Box, CircularProgress, styled, Typography } from '@mui/material'
3
3
  import { ReactNode, useRef, useState } from 'react'
4
4
  import { toast } from 'react-toastify'
5
- import axios from '../config/axios'
5
+ import axios, { axiosErrorToast } from '../config/axios'
6
6
 
7
7
  interface ImageUploadProps {
8
8
  onFileUploaded: (v) => void
@@ -40,7 +40,7 @@ export default function ImageUpload({
40
40
  .catch((err) => {
41
41
  setLoading(false)
42
42
  loadingState && setLoading(false)
43
- toast.error('Server Error While Uploading File')
43
+ axiosErrorToast(err)
44
44
  })
45
45
  }
46
46
  }
@@ -11,8 +11,8 @@ export default function logout() {
11
11
 
12
12
  axios({
13
13
  method: 'POST',
14
- baseURL: 'https://auth-api.campx.in',
15
- url: '/auth/logout',
14
+ baseURL: 'https://api.campx.in',
15
+ url: '/auth-server/auth/logout',
16
16
  })
17
17
  .then((res) => {
18
18
  Cookies.remove('campx_tenant')