@campxdev/shared 1.11.13 → 1.11.14

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.13",
3
+ "version": "1.11.14",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -35,7 +35,7 @@ const imageMap = {
35
35
  interface AppHeaderProps {
36
36
  clientLogo: string
37
37
  fullName: string
38
- profileUrl: string
38
+ profileUrl?: string
39
39
  userBoxActions: {
40
40
  label: ReactNode
41
41
  icon?: ReactNode
@@ -10,7 +10,7 @@ export default function HeaderActions({
10
10
  cogWheelMenu,
11
11
  fullName,
12
12
  userBoxActions,
13
- profileUrl,
13
+ profileUrl = '',
14
14
  }) {
15
15
  return (
16
16
  <>
@@ -24,13 +24,13 @@ export default function UserBox({
24
24
  fullName: string
25
25
  actions: IMenuItemProps[] | []
26
26
  customActions?: IMenuItemProps[] | []
27
- profileUrl: string
27
+ profileUrl?: string
28
28
  }) {
29
29
  const navigate = useNavigate()
30
30
  return (
31
31
  <DropDownButton
32
32
  anchor={({ open }) => (
33
- <StyledAvatar src={profileUrl} onClick={open}>
33
+ <StyledAvatar src={profileUrl ?? ''} onClick={open}>
34
34
  {getStartingLetters(fullName)}
35
35
  </StyledAvatar>
36
36
  )}