@remit/web-client 0.0.39 → 0.0.40

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": "@remit/web-client",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "type": "module",
5
5
  "description": "Remit web client, published as composable primitives — the app shell, auth shells, and runtime config. A distributor imports what it composes and bundles it.",
6
6
  "exports": {
@@ -128,6 +128,7 @@ function useSelectedNavId(): string {
128
128
  const location = useLocation();
129
129
  const params = useParams({ strict: false }) as { mailboxId?: string };
130
130
 
131
+ if (location.pathname.startsWith("/settings")) return "settings";
131
132
  if (location.pathname.startsWith("/mail/outbox")) return "outbox";
132
133
  if (location.pathname.startsWith("/mail/flagged")) return "flagged";
133
134
  if (params.mailboxId) return params.mailboxId;
@@ -271,6 +272,19 @@ export function MailSidebarAdapter({
271
272
  </Link>
272
273
  );
273
274
  }
275
+ if (navId === "settings") {
276
+ return (
277
+ <Link
278
+ to="/settings/accounts"
279
+ onClick={() => onClick?.()}
280
+ className={className}
281
+ aria-label={ariaLabel}
282
+ title={title}
283
+ >
284
+ {children}
285
+ </Link>
286
+ );
287
+ }
274
288
  return (
275
289
  <Link
276
290
  to="/mail/$mailboxId"