Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/loginModal/profileFormView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export const ProfileFormView: React.FC<ProfileFormProps> = ({ onSuccess, onCance
}
} catch (error) {
console.error('Error registering profile', error);
// @ts-ignore
console.error(error.message);
// @ts-ignore
setErrorMessage(error.message || 'Ocurrió un error durante el registro.');
}
},
Expand Down
7 changes: 4 additions & 3 deletions src/sections/user/profile-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ const ProfileHeader = ({ profile, children }: PropsWithChildren<ProfileHeaderPro
mt: 0,
mb: 2,
opacity: 0.7,
minWidth: '400px',
}}
>
{profile?.metadata?.bio ?? ''}
Expand All @@ -364,15 +365,15 @@ const ProfileHeader = ({ profile, children }: PropsWithChildren<ProfileHeaderPro
sx={{ p: 1, minWidth: '44px' }}
onClick={handlePopoverOpen}
>
<Iconify icon="ion:share-outline" width={20} />
<Iconify icon="ion:share-social-outline" width={20} />
</Button>
{selectedProfile && profile?.id === selectedProfile?.id && (
<Button
variant="contained"
variant="outlined"
sx={{
p: 1,
minWidth: '44px',
backgroundColor: '#fff',
backgroundColor: 'transparent',
}}
onClick={() => setIsUpdateModalOpen(true)}
>
Expand Down
4 changes: 3 additions & 1 deletion src/sections/user/view/user-profile-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import ProfileFollowing from '../profile-following';
import ProfileHeader from '../profile-header';
import Label from '../../../components/label';
import ProfileCollected from '../profile-collected';
import {useAuth} from "@src/hooks/use-auth.ts";

// ----------------------------------------------------------------------

Expand All @@ -30,7 +31,8 @@ const UserProfileView = ({ id }: any) => {
const [currentTab, setCurrentTab] = useState('publications');
const settings = useSettingsContext();

const { called, data: profile, execute } = useLazyProfile();
const { called, execute } = useLazyProfile();
const { selectedProfile: profile } = useAuth();

const { data: publications } = usePublications({
where: {
Expand Down