From 451b7b30ed130b18707ca3c7d75e05b26660c095 Mon Sep 17 00:00:00 2001 From: Douglas Sebastian Date: Fri, 1 Dec 2023 22:07:32 -0300 Subject: [PATCH] change: ProfileClass on ProfileSettings --- src/pages/Profile/ProfileSettings/ProfileSettings.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pages/Profile/ProfileSettings/ProfileSettings.tsx b/src/pages/Profile/ProfileSettings/ProfileSettings.tsx index e2423dd4..94ff9f77 100644 --- a/src/pages/Profile/ProfileSettings/ProfileSettings.tsx +++ b/src/pages/Profile/ProfileSettings/ProfileSettings.tsx @@ -1,8 +1,7 @@ import { ChangeEvent, MouseEvent, useContext, useMemo, useState } from 'react'; import { ProfileContext } from '@/pages/Profile'; import { Link, TypeLink, TypeLinkToBootstrapIcon, TypeLinkToLabel } from '@/types/Link'; -import { getFullName, separateFullName } from '@/utils/profileUtils'; -import { GENDER_OPTIONS } from "@/types/Profile"; +import { GENDER_OPTIONS, ProfileClass } from "@/types/Profile"; import { UniversimeApi } from '@/services/UniversimeApi'; import './ProfileSettings.css' @@ -32,7 +31,7 @@ export function ProfileSettings(props: ProfileSettingsProps) {

Nome

- +
@@ -184,7 +183,7 @@ export function ProfileSettings(props: ProfileSettingsProps) { ? (genderElement as HTMLSelectElement).value : ''; - const [name, lastname] = separateFullName(fullname); + const [name, lastname] = ProfileClass.separateFullname(fullname); UniversimeApi.Profile.edit({ profileId: profileContext.profile.id,