Skip to content

Commit

Permalink
fix: notification hub and user menu alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
devrsi0n committed Oct 30, 2024
1 parent 7f6a80c commit c424f44
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/main/typings/next-auth.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import NextAuth from 'next-auth';
import { Plan as PlanUnion } from '@prisma/client';

declare module 'next-auth' {
/**
Expand All @@ -13,6 +14,7 @@ declare module 'next-auth' {
username: string;
email: string;
image: string;
plan: PlanUnion;
editableProjectIds: string[];
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function NotificationHub(): JSX.Element {
<span className="absolute right-[3px] top-[1px] rounded-full bg-red-900 p-1 ring-1 ring-white dark:ring-black" />
)}
</Menu.Button>
<Menu.Items>
<Menu.Items side="left" align="start">
<Heading as="h4" className="px-5 py-3 font-bold">
Notifications
</Heading>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/blocks/user-menu/user-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function UserMenu(props: UserMenuProps): JSX.Element {
username={username}
/>
</Menu.Button>
<Menu.Items className="mx-6">
<Menu.Items side="left" align="start">
{name && (
<div className="mx-4 w-36 space-y-1 py-2">
{plan && plan !== 'HOBBY' && (
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/typings/next-auth.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import NextAuth from 'next-auth';
import { Plan as PlanUnion } from '@prisma/client';

declare module 'next-auth' {
/**
Expand All @@ -13,6 +14,7 @@ declare module 'next-auth' {
username: string;
email: string;
image: string;
plan: PlanUnion;
editableProjectIds: string[];
};
}
Expand Down

0 comments on commit c424f44

Please sign in to comment.