Skip to content
Merged
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
16 changes: 7 additions & 9 deletions src/features/study/ui/my-profile-card.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use client';

import Link from 'next/link';
import React, { useState } from 'react';
import { usePatchAutoMatchingMutation } from '@/entities/user/model/use-user-profile-query';
import UserProfileModal from '@/features/my-page/ui/user-profile-modal';
import UserAvatar from '@/shared/ui/avatar';
import { ToggleSwitch } from '@/shared/ui/toggle';
import AccessTimeIcon from 'public/icons/access_time.svg';
Expand Down Expand Up @@ -56,14 +56,12 @@ export default function MyProfileCard({
<div className="flex flex-row items-center gap-200">
<div className="relative h-[64px] w-[64px] shrink-0">
<UserAvatar size={64} image={imageUrl?.trim() || ''} />
<UserProfileModal
memberId={memberId}
trigger={
<button className="bg-background-accent-gray-strong absolute right-0 bottom-0 flex h-[24px] w-[24px] items-center justify-center rounded-full">
<SettingIcon />
</button>
}
/>
<Link
href="my-page"
className="bg-background-accent-gray-strong absolute right-0 bottom-0 flex h-[24px] w-[24px] items-center justify-center rounded-full"
>
<SettingIcon />
</Link>
</div>
<div className="flex flex-col">
<div className="font-designer-18b">{name?.trim() || '비회원'}님</div>
Expand Down
Loading