Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

fix(x): replace Twitter lucide icon with inline X SVG

spacesdrive50c6b696317e
diff --git a/frontend/src/features/accounts/AccountManager.jsx b/frontend/src/features/accounts/AccountManager.jsx
index ebf93c5..de02f08 100644
--- a/frontend/src/features/accounts/AccountManager.jsx
+++ b/frontend/src/features/accounts/AccountManager.jsx
@@ -10,8 +10,16 @@ import {
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import {
Plus, Trash2, RefreshCw, Search, Users, CheckCircle2,
- Tv, Camera, Link2, Info, ExternalLink, MessageSquare, Lock, Twitter,
+ Tv, Camera, Link2, Info, ExternalLink, MessageSquare, Lock,
} from 'lucide-react';
+
+function XIcon(props) {
+ return (
+ <svg viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em" {...props}>
+ <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.746l7.73-8.835L1.254 2.25H8.08l4.253 5.622L18.244 2.25zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z" />
+ </svg>
+ );
+}
import MainCard from '../../components/MainCard';
import { useAppContext } from '../../context/AppContext';
import { api } from '../../services/api';
@@ -315,7 +323,7 @@ export default function AccountManager() {
{xAccounts.length > 0 && (
<div>
<div className="flex items-center gap-2 mb-3">
- <Twitter className="h-5 w-5 text-sky-500" />
+ <XIcon className="h-5 w-5 text-sky-500" />
<h2 className="text-base font-semibold">X Accounts</h2>
<Badge variant="outline" className="border-sky-200 bg-sky-50 text-sky-600 text-xs">{xAccounts.length}</Badge>
</div>
@@ -361,7 +369,7 @@ export default function AccountManager() {
<MessageSquare className="h-3.5 w-3.5" /> Reddit
</TabsTrigger>
<TabsTrigger value="x" className="flex-1 gap-1.5">
- <Twitter className="h-3.5 w-3.5" /> X
+ <XIcon className="h-3.5 w-3.5" /> X
</TabsTrigger>
</TabsList>
diff --git a/frontend/src/layout/Sidebar.jsx b/frontend/src/layout/Sidebar.jsx
index c470a15..8ce3fdc 100644
--- a/frontend/src/layout/Sidebar.jsx
+++ b/frontend/src/layout/Sidebar.jsx
@@ -8,8 +8,16 @@ import {
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import {
LayoutDashboard, PlaySquare, Scissors, Camera,
- Upload, Users, Settings, Flame, Twitter,
+ Upload, Users, Settings, Flame,
} from 'lucide-react';
+
+function XIcon(props) {
+ return (
+ <svg viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em" {...props}>
+ <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.746l7.73-8.835L1.254 2.25H8.08l4.253 5.622L18.244 2.25zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z" />
+ </svg>
+ );
+}
import { useAppContext } from '../context/AppContext';
const NAV_GROUPS = [
@@ -21,7 +29,7 @@ const NAV_GROUPS = [
{ path: '/shorts', label: 'Shorts', icon: Scissors },
{ path: '/reels', label: 'IG Content', icon: Camera },
{ path: '/reddit-posts', label: 'Reddit Posts', icon: Flame },
- { path: '/x-tweets', label: 'X Tweets', icon: Twitter },
+ { path: '/x-tweets', label: 'X Tweets', icon: XIcon },
],
},
{