Skip to content

Commit

Permalink
fix: just add more menu from avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 9, 2023
1 parent 4a4920d commit 3ba1f81
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions components/user-dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useSupabaseClient, useUser } from "@supabase/auth-helpers-react";
import { motion } from "framer-motion";
import { LayoutDashboard, LogOut } from "lucide-react";
import { Clover, Edit, LayoutDashboard, LogOut, ShoppingBag } from "lucide-react";
import Link from "next/link";
import { useState } from "react";
import Popover from "~/components/shared/popover";
Expand Down Expand Up @@ -30,12 +30,33 @@ export default function UserDropdown() {
content={
<div className="w-full rounded-md bg-white p-2 sm:w-56">
<Link
href="/user/dashboard"
href="/user/videos"
className="relative flex w-full items-center justify-start space-x-2 rounded-md p-2 text-left text-sm transition-all duration-75 hover:bg-gray-100"
>
<LayoutDashboard className="h-4 w-4" />
<p className="text-sm">个人中心</p>
</Link>
<Link
href="/user/integration"
className="relative flex w-full items-center justify-start space-x-2 rounded-md p-2 text-left text-sm transition-all duration-75 hover:bg-gray-100"
>
<Edit className="h-4 w-4" />
<p className="text-sm">导出笔记</p>
</Link>
<Link
href="/shop"
className="relative flex w-full items-center justify-start space-x-2 rounded-md p-2 text-left text-sm transition-all duration-75 hover:bg-gray-100"
>
<ShoppingBag className="h-4 w-4" />
<p className="text-sm">购买次数</p>
</Link>
<Link
href="/#"
className="relative flex w-full cursor-not-allowed items-center justify-start space-x-2 rounded-md p-2 text-left text-sm transition-all duration-75 hover:bg-gray-100"
>
<Clover className="h-4 w-4" />
<p className="text-sm">奖励计划</p>
</Link>
<button
className="relative flex w-full items-center justify-start space-x-2 rounded-md p-2 text-left text-sm transition-all duration-75 hover:bg-gray-100"
onClick={() => signOut({ redirect: false })}
Expand Down

1 comment on commit 3ba1f81

@vercel
Copy link

@vercel vercel bot commented on 3ba1f81 Mar 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.