Skip to content

Commit

Permalink
add share button (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairyathedev authored Jul 1, 2024
1 parent 725f799 commit dead49b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions components/ShareBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ const ShareBtn = ({ username }: { username: string }) => {
return (
<Dialog>
<DialogTrigger>
<Button className="flex text-foreground gap-2 items-center">
<span>
<Share1Icon />
</span>
Share
<Button variant={"outline"}>
<Share1Icon />
</Button>
</DialogTrigger>
<DialogContent>
Expand Down
2 changes: 2 additions & 0 deletions components/new-resume.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { badgeVariants } from "./ui/badge";
import { getRankSuffix } from "@/utils/format";
import CustomisationDrawer from "./CustomisationDrawer";
import ProfileTracking from "./ProfileTracking";
import ShareBtn from "./ShareBtn";
interface GitHubProfile {
name: string;
bio: string;
Expand Down Expand Up @@ -219,6 +220,7 @@ export function NewResume() {
isContributionsExists={contributions.length > 0}
isOrganisationsExists={organizations.length > 0}
/>
<ShareBtn username={username} />
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
<div className="space-y-6">
Expand Down

0 comments on commit dead49b

Please sign in to comment.