@campxdev/shared 1.11.7-0.alpha.44 → 1.11.7-0.alpha.46

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,12 +1,11 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.11.7-0.alpha.44",
3
+ "version": "1.11.7-0.alpha.46",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "dev": "react-scripts start",
8
8
  "build": "CI=false && react-scripts build",
9
- "prepublish": "npm run build",
10
9
  "test": "react-scripts test",
11
10
  "eject": "react-scripts eject",
12
11
  "lint": "eslint ./src/**/*.{js,jsx,ts,tsx,json}",
@@ -75,6 +74,7 @@
75
74
  "@types/js-cookie": "^3.0.6",
76
75
  "@types/node": "^18.11.8",
77
76
  "@types/react": "^18.3.3",
77
+ "@types/react-dom": "^18.3.0",
78
78
  "@types/react-flatpickr": "^3.8.8",
79
79
  "@types/react-helmet": "^6.1.6",
80
80
  "@typescript-eslint/eslint-plugin": "^6.7.4",
@@ -64,7 +64,7 @@ export function LoginForm({
64
64
  Cookies.set('campx_tenant', res?.data?.subDomain)
65
65
  Cookies.set('campx_session_key', res.data?.token)
66
66
  Cookies.set('campx_institution', res.data?.institutionCode)
67
- window.location.href = window.location.origin
67
+ window.location.reload();
68
68
  } catch (err) {
69
69
  // eslint-disable-next-line no-console
70
70
  console.log(err)