From 6a1dbdce4aa520c463f9771af57cf8ec16d312e8 Mon Sep 17 00:00:00 2001 From: Christian Schlensker Date: Mon, 31 Jul 2023 07:15:15 -0700 Subject: [PATCH 1/6] feat: add devcard button to user profile (#1339) --- .../contributor-profile-header.tsx | 7 ++++++- lib/utils/urls.ts | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/components/molecules/ContributorProfileHeader/contributor-profile-header.tsx b/components/molecules/ContributorProfileHeader/contributor-profile-header.tsx index 95b91e8dee..76428333ea 100644 --- a/components/molecules/ContributorProfileHeader/contributor-profile-header.tsx +++ b/components/molecules/ContributorProfileHeader/contributor-profile-header.tsx @@ -3,6 +3,7 @@ import { useRouter } from "next/router"; import Image from "next/image"; import { TfiMoreAlt } from "react-icons/tfi"; import { FiCopy } from "react-icons/fi"; +import { FaIdCard } from "react-icons/fa"; import { SignInWithOAuthCredentials, User } from "@supabase/supabase-js"; import { usePostHog } from "posthog-js/react"; @@ -19,6 +20,7 @@ import { import { useUserCollaborations } from "lib/hooks/useUserCollaborations"; import { useToast } from "lib/hooks/useToast"; +import { cardPageUrl } from "lib/utils/urls"; import { Dialog, DialogContent, DialogHeader, DialogTitle } from "../Dialog/dialog"; interface ContributorProfileHeaderProps { @@ -144,7 +146,10 @@ const ContributorProfileHeader = ({ {/* Mobile dropdown menu */} -
+
+