Refactor state

This commit is contained in:
2025-11-18 23:21:30 +03:00
Unverified
parent c6c60e6404
commit dc4536cabc
43 changed files with 720 additions and 866 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { useState, useEffect } from "react";
import { checkUserSimilarity } from "@/core/api/account/profile";
import { useAppState } from "@/pages/chat/state";
import { useUserStore } from "@/state/user";
import { MaterialIcon } from "@/utils/material";
interface StatusBadgeProps {
@@ -11,7 +11,7 @@ interface StatusBadgeProps {
export function StatusBadge({ verified, userId, size = "small" }: StatusBadgeProps) {
const [isSimilarToVerified, setIsSimilarToVerified] = useState(false);
const { user } = useAppState();
const { user } = useUserStore();
const className = `status-badge ${size}`;