mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-07-06 18:01:22 +02:00
Change direct trace icon
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Bell, Globe2, Info, Route, Star, Trash2 } from 'lucide-react';
|
import { Bell, Globe2, Info, Star, Trash2 } from 'lucide-react';
|
||||||
import { toast } from './ui/sonner';
|
import { toast } from './ui/sonner';
|
||||||
|
import { DirectTraceIcon } from './DirectTraceIcon';
|
||||||
import { isFavorite } from '../utils/favorites';
|
import { isFavorite } from '../utils/favorites';
|
||||||
import { handleKeyboardActivate } from '../utils/a11y';
|
import { handleKeyboardActivate } from '../utils/a11y';
|
||||||
import { stripRegionScopePrefix } from '../utils/regionScope';
|
import { stripRegionScopePrefix } from '../utils/regionScope';
|
||||||
@@ -232,7 +233,7 @@ export function ChatHeader({
|
|||||||
aria-label="Direct Trace"
|
aria-label="Direct Trace"
|
||||||
disabled={activeContactIsPrefixOnly}
|
disabled={activeContactIsPrefixOnly}
|
||||||
>
|
>
|
||||||
<Route className="h-4 w-4" aria-hidden="true" />
|
<DirectTraceIcon className="h-4 w-4 text-muted-foreground" />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
{notificationsSupported && (
|
{notificationsSupported && (
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
interface DirectTraceIconProps {
|
||||||
|
className?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function DirectTraceIcon({ className }: DirectTraceIconProps) {
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth="2"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
className={className}
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
<path d="M3 12h12" />
|
||||||
|
<circle cx="18" cy="12" r="3" />
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import { toast } from './ui/sonner';
|
import { toast } from './ui/sonner';
|
||||||
import { Button } from './ui/button';
|
import { Button } from './ui/button';
|
||||||
import { Bell, Route, Star, Trash2 } from 'lucide-react';
|
import { Bell, Star, Trash2 } from 'lucide-react';
|
||||||
|
import { DirectTraceIcon } from './DirectTraceIcon';
|
||||||
import { RepeaterLogin } from './RepeaterLogin';
|
import { RepeaterLogin } from './RepeaterLogin';
|
||||||
import { useRepeaterDashboard } from '../hooks/useRepeaterDashboard';
|
import { useRepeaterDashboard } from '../hooks/useRepeaterDashboard';
|
||||||
import { isFavorite } from '../utils/favorites';
|
import { isFavorite } from '../utils/favorites';
|
||||||
@@ -126,7 +127,7 @@ export function RepeaterDashboard({
|
|||||||
title="Direct Trace"
|
title="Direct Trace"
|
||||||
aria-label="Direct Trace"
|
aria-label="Direct Trace"
|
||||||
>
|
>
|
||||||
<Route className="h-4 w-4" aria-hidden="true" />
|
<DirectTraceIcon className="h-4 w-4 text-muted-foreground" />
|
||||||
</button>
|
</button>
|
||||||
{notificationsSupported && (
|
{notificationsSupported && (
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user