fix: use useAuthStore instead of useAuth in tickets+profile pages (#27)

This commit was merged in pull request #27.
This commit is contained in:
2026-04-01 09:19:00 +00:00
parent b07e2faee5
commit 9c4c912f55
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
import { useState } from "react";
import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query";
import { RefreshCw, Ticket, Plus, Send, RotateCcw, User, MapPin, Zap } from "lucide-react";
import { useAuth } from "@/contexts/AuthContext";
import { useAuthStore } from "@/lib/auth-store";
import { Card, CardContent, CardHeader } from "@/components/ui/Card";
import { Table, TableHead, TableBody, TableRow, Th, Td, EmptyState } from "@/components/ui/Table";
import { Badge } from "@/components/ui/Badge";
@@ -44,7 +44,7 @@ const prevStatus: Record<string, string> = {
export default function TicketsPage() {
const qc = useQueryClient();
const { user } = useAuth();
const user = useAuthStore((s) => s.user);
const [search, setSearch] = useState("");
const [statusFilter, setStatusFilter] = useState("");
const [typeFilter, setTypeFilter] = useState("");