@campxdev/shared 1.11.16 → 1.11.17

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.11.16",
3
+ "version": "1.11.17",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -0,0 +1,87 @@
1
+ export const CareerIcon = () => {
2
+ return (
3
+ <>
4
+ <svg
5
+ width="20"
6
+ height="20"
7
+ version="1.1"
8
+ id="_x32_"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ xmlnsXlink="http://www.w3.org/1999/xlink"
11
+ viewBox="0 0 512 512"
12
+ xmlSpace="preserve"
13
+ >
14
+ <style type="text/css"></style>
15
+ <g>
16
+ <path
17
+ className="st0"
18
+ d="M216.759,239.367l36.235-36.243c-42.142-19.36-93.728-11.743-128.391,22.92
19
+ c-44.488,44.496-44.488,116.872,0,161.352c44.48,44.497,116.864,44.497,161.353,0c34.663-34.663,42.275-86.249,22.912-128.395
20
+ l-36.235,36.243c3.592,21.121-2.672,43.6-18.951,59.879c-26.693,26.685-70.12,26.685-96.809,0
21
+ c-26.697-26.693-26.697-70.113,0-96.806C173.146,242.039,195.631,235.775,216.759,239.367z"
22
+ />
23
+ <path
24
+ className="st0"
25
+ d="M356.787,256.392c18.353,55.516,5.53,119.183-38.562,163.278c-62.279,62.276-163.616,62.276-225.896,0
26
+ c-62.276-62.276-62.276-163.616,0-225.884c44.103-44.111,107.762-56.932,163.286-38.57l-5.274-48.749
27
+ c-66.375-14.824-138.732,3.49-190.282,55.037c-80.08,80.079-80.08,210.368,0,290.44c80.071,80.07,210.356,80.07,290.431,0
28
+ c51.551-51.555,69.861-123.9,55.032-190.27L356.787,256.392z"
29
+ />
30
+ <path
31
+ className="st0"
32
+ d="M288.667,206.181l-78.346,78.35c-7.385-1.682-15.43,0.314-21.183,6.06c-8.91,8.906-8.91,23.352,0,32.266
33
+ c8.913,8.913,23.356,8.913,32.273,0c5.754-5.753,7.735-13.802,6.061-21.182l78.349-78.342l96.727,10.469l3.856-3.86L512,124.342
34
+ l-112.203-12.136L387.649,0.003L278.197,109.455l0.589,5.432L288.667,206.181z M394.138,209.939l-67.609-7.318l23.533-23.541
35
+ l-0.153-0.142l67.891,7.341L394.138,209.939z M393.647,134.481l68.528,7.42l-23.663,23.674l-68.529-7.42L393.647,134.481z
36
+ M370.094,49.828l7.412,68.525l-23.659,23.658l-7.408-68.516L370.094,49.828z M325.72,94.198l7.349,67.888l-0.154-0.157
37
+ l-23.537,23.541l-7.321-67.621L325.72,94.198z"
38
+ />
39
+ </g>
40
+ </svg>
41
+ </>
42
+ )
43
+ }
44
+
45
+ export const ExamResultIcon = () => {
46
+ return (
47
+ <>
48
+ <svg
49
+ fill="#000000"
50
+ height="24"
51
+ width="24"
52
+ version="1.1"
53
+ id="Capa_1"
54
+ xmlns="http://www.w3.org/2000/svg"
55
+ xmlnsXlink="http://www.w3.org/1999/xlink"
56
+ viewBox="0 0 204 204"
57
+ xmlSpace="preserve"
58
+ >
59
+ <path
60
+ d="M139.185,157.339h25.175l-27.223,29.022v-26.974C137.137,158.257,138.056,157.339,139.185,157.339z M108.805,44.654
61
+ l7.761-1.004l-4.845-6.953L108.805,44.654z M179.518,5v142.339h-40.333c-6.644,0-12.048,5.405-12.048,12.048V204H29.482
62
+ c-2.762,0-5-2.239-5-5V5c0-2.761,2.238-5,5-5h145.035C177.279,0,179.518,2.239,179.518,5z M95.746,65.76
63
+ c0.568,0.208,1.148,0.307,1.721,0.307c2.038,0,3.953-1.256,4.694-3.281l2.765-7.546l18.084-2.34l4.595,6.594
64
+ c0.973,1.395,2.526,2.142,4.106,2.142c0.987,0,1.984-0.292,2.854-0.898c2.266-1.579,2.822-4.695,1.244-6.96l-21.377-30.677
65
+ c-0.008-0.011-0.019-0.02-0.027-0.031c-0.138-0.196-0.303-0.372-0.47-0.547c-0.061-0.064-0.113-0.141-0.177-0.201
66
+ c-0.132-0.124-0.286-0.226-0.432-0.336c-0.117-0.088-0.225-0.189-0.348-0.266c-0.094-0.059-0.202-0.098-0.301-0.151
67
+ c-0.193-0.103-0.384-0.209-0.588-0.285c-0.014-0.005-0.025-0.014-0.039-0.019c-0.117-0.043-0.237-0.057-0.354-0.091
68
+ c-0.183-0.052-0.364-0.11-0.552-0.141c-0.166-0.028-0.33-0.03-0.496-0.04c-0.157-0.01-0.313-0.028-0.471-0.024
69
+ c-0.169,0.005-0.333,0.034-0.5,0.056c-0.155,0.02-0.31,0.033-0.464,0.068c-0.166,0.038-0.324,0.099-0.486,0.154
70
+ c-0.145,0.049-0.292,0.089-0.434,0.153c-0.192,0.086-0.369,0.197-0.549,0.306c-0.09,0.055-0.185,0.091-0.273,0.152
71
+ c-0.01,0.007-0.018,0.017-0.028,0.024c-0.201,0.142-0.382,0.31-0.561,0.481c-0.061,0.058-0.132,0.107-0.19,0.167
72
+ c-0.121,0.128-0.219,0.278-0.326,0.419c-0.092,0.121-0.197,0.234-0.276,0.362c-0.052,0.083-0.086,0.18-0.134,0.267
73
+ c-0.111,0.205-0.222,0.409-0.303,0.626c-0.005,0.013-0.013,0.023-0.017,0.036L92.772,59.345
74
+ C91.822,61.938,93.153,64.81,95.746,65.76z M108.899,152.339c0-2.761-2.238-5-5-5H53.25c-2.762,0-5,2.239-5,5c0,2.761,2.238,5,5,5
75
+ h50.65C106.661,157.339,108.899,155.1,108.899,152.339z M130.157,121.839c0-2.761-2.238-5-5-5H53.25c-2.762,0-5,2.239-5,5
76
+ c0,2.761,2.238,5,5,5h71.907C127.919,126.839,130.157,124.6,130.157,121.839z M145.75,91.339c0-2.761-2.238-5-5-5h-87.5
77
+ c-2.762,0-5,2.239-5,5c0,2.761,2.238,5,5,5h87.5C143.512,96.339,145.75,94.1,145.75,91.339z M164.797,32.019
78
+ c-0.354-2.737-2.852-4.672-5.601-4.317l-6.681,0.865l-0.865-6.681c-0.354-2.738-2.851-4.673-5.601-4.317
79
+ c-2.738,0.354-4.672,2.862-4.317,5.6l0.865,6.681l-6.681,0.865c-2.738,0.354-4.672,2.861-4.317,5.6
80
+ c0.326,2.521,2.477,4.359,4.953,4.359c0.213,0,0.43-0.014,0.648-0.042l6.681-0.865l0.865,6.681c0.326,2.521,2.477,4.359,4.953,4.359
81
+ c0.213,0,0.43-0.014,0.647-0.042c2.738-0.354,4.672-2.862,4.317-5.6l-0.865-6.681l6.681-0.865
82
+ C163.218,37.265,165.151,34.758,164.797,32.019z"
83
+ />
84
+ </svg>
85
+ </>
86
+ )
87
+ }
@@ -16,6 +16,7 @@ const web = require('./web.svg')
16
16
  const mobile = require('./mobile.svg')
17
17
  const location = require('./location.svg')
18
18
  const noDevices = require('./no_devices.svg')
19
+ const careers = require('./lottery.svg')
19
20
  export {
20
21
  activeDevices,
21
22
  animatedImage,
@@ -35,4 +36,5 @@ export {
35
36
  profile,
36
37
  unauth,
37
38
  web,
39
+ careers,
38
40
  }
@@ -0,0 +1,22 @@
1
+ <svg height="80px" width="80px" version="1.1" id="_x32_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
2
+ viewBox="0 0 512 512" xml:space="preserve">
3
+ <style type="text/css">
4
+ .st0{fill:#000000;}
5
+ </style>
6
+ <g>
7
+ <path class="st0" d="M216.759,239.367l36.235-36.243c-42.142-19.36-93.728-11.743-128.391,22.92
8
+ c-44.488,44.496-44.488,116.872,0,161.352c44.48,44.497,116.864,44.497,161.353,0c34.663-34.663,42.275-86.249,22.912-128.395
9
+ l-36.235,36.243c3.592,21.121-2.672,43.6-18.951,59.879c-26.693,26.685-70.12,26.685-96.809,0
10
+ c-26.697-26.693-26.697-70.113,0-96.806C173.146,242.039,195.631,235.775,216.759,239.367z"/>
11
+ <path class="st0" d="M356.787,256.392c18.353,55.516,5.53,119.183-38.562,163.278c-62.279,62.276-163.616,62.276-225.896,0
12
+ c-62.276-62.276-62.276-163.616,0-225.884c44.103-44.111,107.762-56.932,163.286-38.57l-5.274-48.749
13
+ c-66.375-14.824-138.732,3.49-190.282,55.037c-80.08,80.079-80.08,210.368,0,290.44c80.071,80.07,210.356,80.07,290.431,0
14
+ c51.551-51.555,69.861-123.9,55.032-190.27L356.787,256.392z"/>
15
+ <path class="st0" d="M288.667,206.181l-78.346,78.35c-7.385-1.682-15.43,0.314-21.183,6.06c-8.91,8.906-8.91,23.352,0,32.266
16
+ c8.913,8.913,23.356,8.913,32.273,0c5.754-5.753,7.735-13.802,6.061-21.182l78.349-78.342l96.727,10.469l3.856-3.86L512,124.342
17
+ l-112.203-12.136L387.649,0.003L278.197,109.455l0.589,5.432L288.667,206.181z M394.138,209.939l-67.609-7.318l23.533-23.541
18
+ l-0.153-0.142l67.891,7.341L394.138,209.939z M393.647,134.481l68.528,7.42l-23.663,23.674l-68.529-7.42L393.647,134.481z
19
+ M370.094,49.828l7.412,68.525l-23.659,23.658l-7.408-68.516L370.094,49.828z M325.72,94.198l7.349,67.888l-0.154-0.157
20
+ l-23.537,23.541l-7.321-67.621L325.72,94.198z"/>
21
+ </g>
22
+ </svg>
@@ -3,6 +3,13 @@ import { IconButton, Stack } from '@mui/material'
3
3
  import InstitutionsDropDown from '../../../Institutions/InstitutionsDropdown'
4
4
  import CogWheelMenu from './CogWheelMenu'
5
5
  import UserBox from './UserBox'
6
+ import { CareerIcon, ExamResultIcon } from '../../../../assets/icons'
7
+ import { useNavigate } from 'react-router-dom'
8
+
9
+ const profileMenu = [
10
+ { label: 'Student Results', path: '/results' },
11
+ { label: 'Careers', path: '/careers' },
12
+ ]
6
13
 
7
14
  export default function HeaderActions({
8
15
  cogWheelMenu,
@@ -10,6 +17,7 @@ export default function HeaderActions({
10
17
  userBoxActions,
11
18
  profileUrl = '',
12
19
  }) {
20
+ const navigate = useNavigate()
13
21
  return (
14
22
  <Stack direction="row" gap={6}>
15
23
  <InstitutionsDropDown />
@@ -23,7 +31,22 @@ export default function HeaderActions({
23
31
  >
24
32
  <HelpOutlineIcon />
25
33
  </IconButton>
26
- {cogWheelMenu?.length ? <CogWheelMenu menu={cogWheelMenu} /> : null}
34
+ <IconButton
35
+ onClick={() => {
36
+ navigate('/results')
37
+ }}
38
+ >
39
+ <ExamResultIcon />
40
+ </IconButton>
41
+ <IconButton
42
+ onClick={() => {
43
+ navigate('/careers')
44
+ }}
45
+ >
46
+ <CareerIcon />
47
+ </IconButton>
48
+
49
+ {/* {cogWheelMenu?.length ? <CogWheelMenu menu={cogWheelMenu} /> : null} */}
27
50
  <UserBox
28
51
  fullName={fullName}
29
52
  actions={userBoxActions}