fix: connect header and layout user info to api, fix setting api and lazy load

This commit is contained in:
Sajad Mirjalili
2025-08-17 12:33:14 +03:30
parent dd6e2fdd0d
commit a63cbff85e
5 changed files with 102 additions and 37 deletions

View File

@@ -15,7 +15,7 @@ import {
import { type InfoRowData } from '../types/settingsType';
export async function fetchProfile() {
return apiClient.post<GetProfileApiResponse>('/Profile/GetProfile');
return apiClient.post<GetProfileApiResponse>('/Profile/GetProfile', {});
}
export async function saveProfile(payload: {