Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/(auth)/sign-in/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const SignIn = () => {
<InputField
name="email"
label="Email"
placeholder="contact@jsmastery.com"
placeholder="contact@gamil.com"
register={register}
error={errors.email}
validation={{ required: 'Email is required', pattern: /^\w+@\w+\.\w+$/ }}
Expand Down
12 changes: 8 additions & 4 deletions components/UserDropDowm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"

Check warning on line 12 in components/UserDropDowm.tsx

View workflow job for this annotation

GitHub Actions / Run ESLint

'AvatarImage' is defined but never used

Check warning on line 12 in components/UserDropDowm.tsx

View workflow job for this annotation

GitHub Actions / Run ESLint

'AvatarImage' is defined but never used
import { useRouter } from 'next/navigation'
import { LogOut } from 'lucide-react'
import NavItems from './NavItems'
Expand Down Expand Up @@ -40,7 +40,7 @@
</div>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56" align="start">
<DropdownMenuContent className="w-56" align="end">
<DropdownMenuLabel className='flex relative items-center gap-3 py-2'>
<div className='flex relative items-center gap-3 py-2'>
<Avatar className='h-8 w-8'>
Expand All @@ -49,9 +49,13 @@
{user.name.charAt(0).toUpperCase()}
</AvatarFallback>
</Avatar>
<div className='md:flex flex-col items-start'>
<span className='text-base font-medium text-gray-400'>{user.name}</span>
<span className='text-xs text-gray-400'>{user.email}</span>
<div className='flex flex-col items-start min-w-0'>
<span className='text-base font-medium text-gray-400'>
{user.name}
</span>
<span className='text-xs text-gray-400'>
{user.email}
</span>
</div>
</div>
</DropdownMenuLabel>
Expand Down
Loading