@campxdev/shared 1.1.2 → 1.1.3

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.2",
3
+ "version": "1.1.3",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -75,7 +75,7 @@ export default function AppHeader({
75
75
  <AppLogo clientLogo={clientLogo} />
76
76
  </Box>
77
77
  <Box className="actions">
78
- <HelpWidget />
78
+ {/* <HelpWidget /> */}
79
79
  {/* <Notification /> */}
80
80
  {cogWheelMenu?.length ? <CogWheelMenu menu={cogWheelMenu} /> : null}
81
81
  <UserBox
@@ -55,7 +55,7 @@ const AppsMenu = () => {
55
55
  </Box>
56
56
  <Box>
57
57
  {applications.map((item, index) => (
58
- <StyledLink href={item.path}>
58
+ <StyledLink href={item.path} key={index}>
59
59
  <StyledMenuItemContainer
60
60
  key={index}
61
61
  onClick={() => {
@@ -9,6 +9,7 @@ import { ExitToAppOutlined, HttpsOutlined } from '@mui/icons-material'
9
9
  import ConfirmationNumberOutlinedIcon from '@mui/icons-material/ConfirmationNumberOutlined'
10
10
  import DialogWrapper from '../../DrawerWrapper/DialogWrapper'
11
11
  import MyTickets from '../Tickets/MyTickets'
12
+
12
13
  export default function UserBox({
13
14
  username,
14
15
  profileIcon,
@@ -55,11 +56,11 @@ export default function UserBox({
55
56
  }
56
57
  menu={[
57
58
  ...actions,
58
- {
59
- label: 'My Tickets',
60
- icon: <ConfirmationNumberOutlinedIcon />,
61
- onClick: handleTicketOpen,
62
- },
59
+ // {
60
+ // label: 'My Tickets',
61
+ // icon: <ConfirmationNumberOutlinedIcon />,
62
+ // onClick: handleTicketOpen,
63
+ // },
63
64
 
64
65
  {
65
66
  label: 'Change Password',
@@ -50,13 +50,6 @@ export const applications = [
50
50
  icon: examsSmall,
51
51
  description: 'Manage all Examinations in the Campus',
52
52
  },
53
- {
54
- title: 'HostelX',
55
- key: 'hostel',
56
- path: isDevelopment ? origins.hostel.dev : origins.hostel.prod,
57
- icon: hostelSmall,
58
- description: 'Manage Hostels in the Campus',
59
- },
60
53
  {
61
54
  title: 'PayX',
62
55
  key: 'payments',
@@ -64,6 +57,13 @@ export const applications = [
64
57
  icon: paySmall,
65
58
  description: 'Manage Payments in the Campus',
66
59
  },
60
+ {
61
+ title: 'HostelX',
62
+ key: 'hostel',
63
+ path: isDevelopment ? origins.hostel.dev : origins.hostel.prod,
64
+ icon: hostelSmall,
65
+ description: 'Manage Hostels in the Campus',
66
+ },
67
67
  {
68
68
  title: 'CommuteX',
69
69
  key: 'commute',
package/.eslintignore DELETED
@@ -1,4 +0,0 @@
1
- # .estlintignore file
2
- dist
3
- build
4
- node_modules/
package/.eslintrc.js DELETED
@@ -1,33 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- jest: true,
6
- },
7
- parser: '@typescript-eslint/parser',
8
- extends: ['prettier'],
9
- overrides: [],
10
- parserOptions: {
11
- ecmaVersion: 'latest',
12
- sourceType: 'module',
13
- ecmaFeatures: {
14
- jsx: true,
15
- },
16
- },
17
- settings: {
18
- 'import/resolver': {
19
- typescript: {},
20
- },
21
- },
22
- plugins: ['react', '@typescript-eslint', 'prettier'],
23
- rules: {
24
- 'react/react-in-jsx-scope': 'off',
25
- 'no-duplicate-imports': 'error',
26
- 'no-console': 'warn',
27
- 'react/prop-types': ['off'],
28
- 'react/jsx-key': ['warn'],
29
- 'react/no-unescaped-entities': 'off',
30
- 'spaced-comment': 'off',
31
- },
32
- ignorePatterns: ['**/*.html'],
33
- }
package/.prettierrc DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "bracketSpacing": true,
3
- "printWidth": 80,
4
- "singleQuote": true,
5
- "trailingComma": "all",
6
- "tabWidth": 2,
7
- "useTabs": false,
8
- "bracketSameLine": false,
9
- "semi": false
10
- }
package/publish.sh DELETED
@@ -1,2 +0,0 @@
1
- npm version patch
2
- npm publish --verbose --production
package/todo.md DELETED
@@ -1,20 +0,0 @@
1
- #todo
2
- 1.errorBoundary
3
- 2.fullcalendar
4
-
5
- 6.row
6
-
7
- #done today
8
-
9
- 4.nodatallustration
10
- 7.searchBar
11
- 11.uploadFileDialog
12
- 3.meadiaRow
13
-
14
- 8.stepsHeader
15
-
16
- #later
17
- 11.uploadButon
18
- 12.uploadDocuments
19
- 5.popupconfirm
20
- 1.ReactTable