@campxdev/react-blueprint 1.6.0 → 1.6.1
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
|
@@ -22,6 +22,7 @@ export default function UserBox({
|
|
|
22
22
|
profileUrl,
|
|
23
23
|
profileSx = {},
|
|
24
24
|
institutionsData,
|
|
25
|
+
changePassword,
|
|
25
26
|
avatar = true, // Make avatar optional, default to true
|
|
26
27
|
navigationIcon = true, // Make navigationIcon optional, default to true
|
|
27
28
|
showActiveDevices = true, // Make active devices optional, default to true
|
|
@@ -29,13 +30,10 @@ export default function UserBox({
|
|
|
29
30
|
fullName: string;
|
|
30
31
|
designation?: string;
|
|
31
32
|
institutionsData?: any[];
|
|
32
|
-
actions:
|
|
33
|
-
label: ReactNode;
|
|
34
|
-
icon?: ReactNode;
|
|
35
|
-
onClick: any;
|
|
36
|
-
}[];
|
|
33
|
+
actions: ReactNode[];
|
|
37
34
|
onLogoutClick?: any;
|
|
38
35
|
profileUrl?: string;
|
|
36
|
+
changePassword?: ReactNode;
|
|
39
37
|
profileSx?: any;
|
|
40
38
|
avatar?: boolean; // Define avatar as optional
|
|
41
39
|
navigationIcon?: boolean; // Define navigationIcon as optional
|
|
@@ -121,6 +119,7 @@ export default function UserBox({
|
|
|
121
119
|
/>
|
|
122
120
|
</Box>,
|
|
123
121
|
|
|
122
|
+
actions.map((action) => action),
|
|
124
123
|
<DropdownMenuItem
|
|
125
124
|
label={
|
|
126
125
|
<Stack
|