mautourco-components 0.2.98 → 0.2.99
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.
|
@@ -20,5 +20,5 @@ export var DesktopNav = function (_a) {
|
|
|
20
20
|
if (!isDisabled)
|
|
21
21
|
onLinkClick === null || onLinkClick === void 0 ? void 0 : onLinkClick(it);
|
|
22
22
|
}, children: it.label })) }, it.label));
|
|
23
|
-
}) }), _jsx("div", { className: "header-nav__user-section ".concat(user ? 'header-nav__user-connected-section' : ''), children: user ? (
|
|
23
|
+
}) }), _jsx("div", { className: "header-nav__user-section ".concat(user ? 'header-nav__user-connected-section' : ''), children: user ? (_jsxs("div", { className: "header-nav__user-container", children: [_jsx(UserCard, { user: user, agencies: agencies || [], selectedAgency: selectedAgency, onSelectAgency: onAgencyChange }), _jsx(Button, { size: "sm", variant: "secondary", onClick: onLogout, className: "header-nav__logout-button", children: "Logout" })] })) : (_jsx(Button, { size: "sm", variant: "secondary", onClick: onLogin, children: "Login" })) })] })] }));
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -121,6 +121,13 @@ export const DesktopNav: React.FC<DesktopNavProps> = ({
|
|
|
121
121
|
selectedAgency={selectedAgency}
|
|
122
122
|
onSelectAgency={onAgencyChange}
|
|
123
123
|
/>
|
|
124
|
+
<Button
|
|
125
|
+
size="sm"
|
|
126
|
+
variant="secondary"
|
|
127
|
+
onClick={onLogout}
|
|
128
|
+
className="header-nav__logout-button">
|
|
129
|
+
Logout
|
|
130
|
+
</Button>
|
|
124
131
|
</div>
|
|
125
132
|
) : (
|
|
126
133
|
<Button size="sm" variant="secondary" onClick={onLogin}>
|