Compare commits
11 Commits
fix/ticket
...
feat/web-s
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fd1091ebc | |||
| 272a543425 | |||
| 0d35d18b36 | |||
| f22c8d9b71 | |||
| d16b96920f | |||
| 8840df686f | |||
| 10fc6285dd | |||
| 3b7057a294 | |||
| b212bb1d36 | |||
| 95bbb198b5 | |||
| 10531338d0 |
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useMutation } from "@tanstack/react-query";
|
import { useMutation } from "@tanstack/react-query";
|
||||||
import { useAuthStore } from "@/lib/auth-store";
|
import { useAuth } from "@/contexts/AuthContext";
|
||||||
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 { Input } from "@/components/ui/Input";
|
import { Input } from "@/components/ui/Input";
|
||||||
@@ -11,7 +11,7 @@ import api from "@/lib/api";
|
|||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
|
|
||||||
export default function ProfilePage() {
|
export default function ProfilePage() {
|
||||||
const user = useAuthStore((s) => s.user);
|
const { user } = useAuth();
|
||||||
|
|
||||||
const [infoForm, setInfoForm] = useState({
|
const [infoForm, setInfoForm] = useState({
|
||||||
firstName: (user as any)?.firstName ?? user?.name?.split(" ")[0] ?? "",
|
firstName: (user as any)?.firstName ?? user?.name?.split(" ")[0] ?? "",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query";
|
import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query";
|
||||||
import { RefreshCw, Ticket, Plus, Send, RotateCcw, User, MapPin, Zap } from "lucide-react";
|
import { RefreshCw, Ticket, Plus, Send, RotateCcw, User, MapPin, Zap } from "lucide-react";
|
||||||
import { useAuthStore } from "@/lib/auth-store";
|
import { useAuth } from "@/contexts/AuthContext";
|
||||||
import { Card, CardContent, CardHeader } from "@/components/ui/Card";
|
import { Card, CardContent, CardHeader } from "@/components/ui/Card";
|
||||||
import { Table, TableHead, TableBody, TableRow, Th, Td, EmptyState } from "@/components/ui/Table";
|
import { Table, TableHead, TableBody, TableRow, Th, Td, EmptyState } from "@/components/ui/Table";
|
||||||
import { Badge } from "@/components/ui/Badge";
|
import { Badge } from "@/components/ui/Badge";
|
||||||
@@ -44,7 +44,7 @@ const prevStatus: Record<string, string> = {
|
|||||||
|
|
||||||
export default function TicketsPage() {
|
export default function TicketsPage() {
|
||||||
const qc = useQueryClient();
|
const qc = useQueryClient();
|
||||||
const user = useAuthStore((s) => s.user);
|
const { user } = useAuth();
|
||||||
const [search, setSearch] = useState("");
|
const [search, setSearch] = useState("");
|
||||||
const [statusFilter, setStatusFilter] = useState("");
|
const [statusFilter, setStatusFilter] = useState("");
|
||||||
const [typeFilter, setTypeFilter] = useState("");
|
const [typeFilter, setTypeFilter] = useState("");
|
||||||
|
|||||||
Reference in New Issue
Block a user