Skip to content

Commit

Permalink
feat:add avatarpopover to edit/file route
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkle committed Jul 12, 2024
1 parent 07cdb7f commit 916ddf1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/edit/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { GoRepoForked } from 'react-icons/go';

import { Avatar } from '@/components/common/Avatar';
import { Button } from '@/components/ui/button';
import AvatarPopover from '@/components/avatarPopover';

interface ProjectData {
[key: string]: any;
Expand Down Expand Up @@ -49,7 +50,11 @@ export const Header: React.FC<HeaderProps> = ({ project, userInfo }) => {
<div className=" absolute left-[50%] leading-[5vh] font-[300] text-[15px]">
{project.name}
</div>
<Avatar src={userInfo.imgurl} className=" flex h-[3.5vh] w-[3.5vh] mr-4" />
<div className="mr-4">
<AvatarPopover>
<Avatar src={userInfo.imgurl} className=" flex h-[3.5vh] w-[3.5vh]" />
</AvatarPopover>
</div>
</header>
);
};

0 comments on commit 916ddf1

Please sign in to comment.