@campxdev/shared 0.5.13 → 0.5.15

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.5.13",
3
+ "version": "0.5.15",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -56,26 +56,28 @@ export const applications = [
56
56
  icon: paySmall,
57
57
  description: 'Manage Online Payments in the Campus',
58
58
  },
59
- ...(isDevelopment && [
60
- {
61
- title: 'PeopleX',
62
- path: isDevelopment ? origins.people.dev : origins.people.prod,
63
- icon: peopleSmall,
64
- description: 'Manage People in the Campus',
65
- },
66
- {
67
- title: 'HostelX',
68
- path: isDevelopment ? origins.hostel.dev : origins.hostel.prod,
69
- icon: hostelSmall,
70
- description: 'Manage Hostels in the Campus',
71
- },
72
- {
73
- title: 'CommuteX',
74
- path: isDevelopment ? origins.commute.dev : origins.commute.prod,
75
- icon: hostelSmall,
76
- description: 'Manage Commute in the Campus',
77
- },
78
- ]),
59
+ ...(isDevelopment
60
+ ? [
61
+ {
62
+ title: 'PeopleX',
63
+ path: isDevelopment ? origins.people.dev : origins.people.prod,
64
+ icon: peopleSmall,
65
+ description: 'Manage People in the Campus',
66
+ },
67
+ {
68
+ title: 'HostelX',
69
+ path: isDevelopment ? origins.hostel.dev : origins.hostel.prod,
70
+ icon: hostelSmall,
71
+ description: 'Manage Hostels in the Campus',
72
+ },
73
+ {
74
+ title: 'CommuteX',
75
+ path: isDevelopment ? origins.commute.dev : origins.commute.prod,
76
+ icon: hostelSmall,
77
+ description: 'Manage Commute in the Campus',
78
+ },
79
+ ]
80
+ : []),
79
81
  // {
80
82
  // title: 'EnrollX',
81
83
  // path: '/hostel',
@@ -6,7 +6,7 @@ import {NetworkStore} from '../components/ErrorBoundary/GlobalNetworkLoadingIndi
6
6
  import {isDevelopment} from '../constants'
7
7
 
8
8
  const sessionKey = Cookies.get('campx_session_key')
9
- const clientId = window.location.pathname.split('/')[0] ?? 'campx_dev'
9
+ const clientId = window.location.pathname.split('/')[1] ?? 'campx_dev'
10
10
 
11
11
  const formatParams = (params) => {
12
12
  return Object.fromEntries(