Remove .. relative imports and replace with absolute paths

This commit is contained in:
2025-10-10 11:25:45 +03:00
Unverified
parent 32e08cdfdb
commit b3303f2aef
34 changed files with 133 additions and 121 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import { useState, useEffect, useCallback, useRef } from "react";
import { useAppState } from "../state";
import { useAppState } from "@/pages/chat/state";
import {
fetchUsers,
fetchUserPublicKey,
@@ -7,8 +7,8 @@ import {
decryptDm,
sendDMViaWebSocket
} from "../../../core/api/dmApi";
import type { User, Message, DmEncryptedJSON } from "../../../core/types";
import { websocket } from "../../../core/websocket";
import type { User, Message, DmEncryptedJSON } from "@/core/types";
import { websocket } from "@/core/websocket";
export interface DMUser extends User {
lastMessage?: string;
+3 -3
View File
@@ -1,7 +1,7 @@
import { useState, useCallback, useEffect } from "react";
import { useAppState } from "../state";
import { loadProfile, updateProfile, uploadProfilePicture, type ProfileData } from "../../../core/api/profileApi";
import { showSuccess, showError } from "../../../utils/notification";
import { useAppState } from "@/pages/chat/state";
import { loadProfile, updateProfile, uploadProfilePicture, type ProfileData } from "@/core/api/profileApi";
import { showSuccess, showError } from "@/utils/notification";
export default function useProfile() {
const { user } = useAppState();