Streamline user interface by removing unused components and hooks
Removes unused components, hooks, and state variables in Dashboard, Focus, and Landing pages. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 6bac2659-689a-442d-ae16-f45f8d1450c7 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/41d8b5bb-a823-42b7-84fd-d2a58c1a51a2.jpg
This commit is contained in:
@@ -12,14 +12,14 @@ import { useNotifications } from "@/context/NotificationProvider";
|
|||||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Badge } from "@/components/ui/badge";
|
import { Badge } from "@/components/ui/badge";
|
||||||
import { CardSkeleton, PageSkeleton } from "@/components/ui/loading-skeleton";
|
|
||||||
import {
|
import {
|
||||||
Calendar,
|
Calendar,
|
||||||
DollarSign,
|
DollarSign,
|
||||||
Mic,
|
Mic,
|
||||||
Brain,
|
Brain,
|
||||||
Activity,
|
Activity,
|
||||||
TrendingUp,
|
|
||||||
Zap,
|
Zap,
|
||||||
HelpCircle
|
HelpCircle
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
@@ -28,9 +28,8 @@ import { useTourManager, getMainTourSteps } from "@/components/onboarding/TourMa
|
|||||||
export default function DashboardPage() {
|
export default function DashboardPage() {
|
||||||
const { user, isLoading } = useAuth();
|
const { user, isLoading } = useAuth();
|
||||||
const [, setLocation] = useLocation();
|
const [, setLocation] = useLocation();
|
||||||
const [commandPaletteOpen, setCommandPaletteOpen] = useState(false);
|
useVoiceContext();
|
||||||
const { isListening, speak } = useVoiceContext();
|
useNotifications();
|
||||||
const { unreadCount } = useNotifications();
|
|
||||||
const { startTour } = useTourManager();
|
const { startTour } = useTourManager();
|
||||||
|
|
||||||
const handleStartTour = () => {
|
const handleStartTour = () => {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import Sidebar from "@/components/layout/Sidebar";
|
|||||||
import FocusMode from "@/components/focus/FocusMode";
|
import FocusMode from "@/components/focus/FocusMode";
|
||||||
|
|
||||||
export default function FocusPage() {
|
export default function FocusPage() {
|
||||||
const { t } = useTranslation();
|
useTranslation();
|
||||||
const [isFocusModeOpen, setIsFocusModeOpen] = useState(false);
|
const [isFocusModeOpen, setIsFocusModeOpen] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { Card, CardContent } from "@/components/ui/card";
|
|||||||
import DailyJoke from "@/components/ai/DailyJoke";
|
import DailyJoke from "@/components/ai/DailyJoke";
|
||||||
import VoiceIndicator from "@/components/voice/VoiceIndicator";
|
import VoiceIndicator from "@/components/voice/VoiceIndicator";
|
||||||
import Header from "@/components/layout/Header";
|
import Header from "@/components/layout/Header";
|
||||||
import { useTheme } from "@/context/ThemeContext";
|
|
||||||
import {
|
import {
|
||||||
Mic,
|
Mic,
|
||||||
Volume2,
|
Volume2,
|
||||||
|
|||||||
Reference in New Issue
Block a user