renamed account page to settings page and improved layout

This commit is contained in:
2026-01-03 23:32:54 +01:00
parent 53b854d03a
commit 9e855d52c7
9 changed files with 118 additions and 110 deletions

View File

@@ -2,8 +2,8 @@ import { UpdateUserResponse } from '../types';
import { apiFetch } from './client'
// import type { User } from '../types'
export function updateAccount(username: string, email: string, password: string) {
return apiFetch<UpdateUserResponse>('/account', {
export function updateSettings(username: string, email: string, password: string) {
return apiFetch<UpdateUserResponse>('/settings', {
method: 'PUT',
body: JSON.stringify({ username, email, password }),
});