Skip to content

Commit

Permalink
Add write a review button in accounts page (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
KMKoushik authored Mar 18, 2024
1 parent 52a8d1b commit 7e04c09
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Account/SubmitFeedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const SubmitFeedback: React.FC = () => {
<AppDrawer
trigger={
<div className="flex w-full justify-between px-0 py-2 text-[16px] font-medium text-gray-300 hover:text-foreground/80">
<div className="flex items-center gap-2">
<div className="flex items-center gap-4 text-[16px]">
<MessageSquare className="h-5 w-5 text-green-500" />
Submit feedback
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Account/SubscribeNotification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const SubscribeNotification: React.FC = () => {
className="text-md w-full justify-between px-0 hover:text-foreground/80"
onClick={isSubscribed ? unSubscribeNotification : onRequestNotification}
>
<div className="flex items-center gap-2">
<div className="flex items-center gap-4">
{!isSubscribed ? (
<>
<Bell className="h-5 w-5 text-red-400" />
Expand Down
20 changes: 16 additions & 4 deletions src/pages/account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MainLayout from '~/components/Layout/MainLayout';
import { Button } from '~/components/ui/button';
import Link from 'next/link';
import { UserAvatar } from '~/components/ui/avatar';
import { Bell, ChevronRight, Download, Github } from 'lucide-react';
import { Bell, ChevronRight, Download, Github, Star } from 'lucide-react';
import { signOut } from 'next-auth/react';
import { AppDrawer } from '~/components/ui/drawer';
import { SubmitFeedback } from '~/components/Account/SubmitFeedback';
Expand Down Expand Up @@ -45,7 +45,7 @@ const AccountPage: NextPageWithUser = ({ user }) => {
variant="ghost"
className="text-md w-full justify-between px-0 hover:text-foreground/80"
>
<div className="flex items-center gap-2">
<div className="flex items-center gap-4">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1200 1227"
Expand Down Expand Up @@ -74,7 +74,7 @@ const AccountPage: NextPageWithUser = ({ user }) => {
variant="ghost"
className="text-md w-full justify-between px-0 hover:text-foreground/80"
>
<div className="flex items-center gap-2">
<div className="flex items-center gap-4">
<Github className="h-5 w-5 text-gray-200" />
Star us on Github
</div>
Expand All @@ -83,10 +83,22 @@ const AccountPage: NextPageWithUser = ({ user }) => {
</Link>
<SubmitFeedback />
<SubscribeNotification />
<Link href="https://www.producthunt.com/products/splitpro/reviews/new" target="_blank">
<Button
variant="ghost"
className="text-md w-full justify-between px-0 hover:text-foreground/80"
>
<div className="flex items-center gap-4">
<Star className="h-5 w-5 text-yellow-400" />
Write a review
</div>
<ChevronRight className="h-6 w-6 text-gray-500" />
</Button>
</Link>
<AppDrawer
trigger={
<div className="flex w-full justify-between px-0 py-2 text-[16px] font-medium text-gray-300 hover:text-foreground/80">
<div className="flex items-center gap-2">
<div className="flex items-center gap-4">
<Download className="h-5 w-5 text-blue-500" />
Download App
</div>
Expand Down

0 comments on commit 7e04c09

Please sign in to comment.