@visns-studio/visns-components 6.34.0 → 6.34.3

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.
@@ -3,6 +3,7 @@ import {
3
3
  ArrowLeft,
4
4
  ArrowRight,
5
5
  Ban,
6
+ ChevronRight,
6
7
  CircleSlash,
7
8
  ExternalLink,
8
9
  FileSpreadsheet,
@@ -2425,10 +2426,39 @@ const SmsCampaignsInner = ({
2425
2426
  <div className={styles.settings}>
2426
2427
  <div className={styles.settingsHead}>
2427
2428
  <div>
2428
- <h1 className={styles.pageTitle}>
2429
- <Megaphone size={22} strokeWidth={2.2} aria-hidden="true" />
2430
- {pageTitle}
2431
- </h1>
2429
+ {/* A breadcrumb back to the inbox the campaigns hang off —
2430
+ `Messages › SMS campaigns`, the trail every record page
2431
+ wears. A router navigation where there is a router. */}
2432
+ <nav aria-label="Breadcrumb">
2433
+ <h1 className={styles.pageTitle}>
2434
+ <a
2435
+ className={styles.pageTitleParent}
2436
+ href={inboxUrl}
2437
+ onClick={(event) => {
2438
+ if (
2439
+ !navigate ||
2440
+ event.metaKey ||
2441
+ event.ctrlKey ||
2442
+ event.shiftKey ||
2443
+ event.button === 1
2444
+ ) {
2445
+ return;
2446
+ }
2447
+ event.preventDefault();
2448
+ navigate(inboxUrl);
2449
+ }}
2450
+ >
2451
+ Messages
2452
+ </a>
2453
+ <ChevronRight
2454
+ className={styles.pageTitleChevron}
2455
+ strokeWidth={2}
2456
+ size={16}
2457
+ aria-hidden="true"
2458
+ />
2459
+ <span aria-current="page">{pageTitle}</span>
2460
+ </h1>
2461
+ </nav>
2432
2462
  <p className={styles.pageIntro}>
2433
2463
  One message to a list of numbers, sent one at a time from a line
2434
2464
  you choose. Replies come back to the inbox like any other
@@ -3,7 +3,6 @@ import {
3
3
  Inbox,
4
4
  Loader2,
5
5
  Megaphone,
6
- MessageSquare,
7
6
  PenSquare,
8
7
  Unplug,
9
8
  Search,
@@ -284,10 +283,8 @@ const SmsInboxInner = ({
284
283
  <div className={styles.inbox}>
285
284
  <div className={styles.inboxHead}>
286
285
  <div className={styles.inboxHeading}>
287
- <h1 className={styles.pageTitle}>
288
- <MessageSquare size={22} strokeWidth={2.2} aria-hidden="true" />
289
- {pageTitle}
290
- </h1>
286
+ {/* No icon: no other page title in a host CRM carries one. */}
287
+ <h1 className={styles.pageTitle}>{pageTitle}</h1>
291
288
  <p className={styles.pageIntro}>
292
289
  Text messages sent and received on the practice's phone lines.
293
290
  Replies come back to the line they were sent from.
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
2
- import { Loader2, MessageSquare, Plus, TriangleAlert, X } from 'lucide-react';
2
+ import { Loader2, Plus, TriangleAlert, X } from 'lucide-react';
3
3
  import { toast } from 'react-toastify';
4
4
 
5
5
  import CustomFetch from '../Fetch';
@@ -264,10 +264,7 @@ const SmsLineSettings = ({
264
264
  {pageTitle !== null && (
265
265
  <div className={styles.settingsHead}>
266
266
  <div>
267
- <h1 className={styles.pageTitle}>
268
- <MessageSquare size={22} strokeWidth={2.2} aria-hidden="true" />
269
- {pageTitle}
270
- </h1>
267
+ <h1 className={styles.pageTitle}>{pageTitle}</h1>
271
268
  <p className={styles.pageIntro}>
272
269
  A line is one Zoom Phone number and the staff who can see its
273
270
  conversations. Everything staff send goes out from the line they