Skip to content

Commit

Permalink
more icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Din committed Dec 14, 2023
1 parent 806257c commit 0dbf3fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion @web/components/login-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type { ApiOutputs } from '@web/lib/api'
import { api } from '@web/lib/api'
import { useAtom } from 'jotai'
import { RESET } from 'jotai/utils'
import Link from 'next/link'
import { usePathname, useSearchParams } from 'next/navigation'
import { useEffect, useId, useState } from 'react'
import OTPInput from 'react-otp-input'
Expand Down
14 changes: 12 additions & 2 deletions @web/components/profile-dropdown-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ExitIcon, PersonIcon, PlusIcon } from '@radix-ui/react-icons'
import { authAtom } from '@web/atoms/auth'
import { api } from '@web/lib/api'
import { useAtom } from 'jotai'
Expand Down Expand Up @@ -46,7 +47,10 @@ export function ProfileDropdownMenu({ children, open = false, onOpenChange, ...p
<DropdownMenuSeparator />
<DropdownMenuGroup>
<DropdownMenuItem asChild>
<Link href="/profile">Profile</Link>
<Link href="/profile">
<PersonIcon className="h-4 w-4 mr-2" />
Profile
</Link>
</DropdownMenuItem>
<CreateOrganizationDropdownMenuItem />
<LogoutDropdownMenuItem />
Expand Down Expand Up @@ -207,14 +211,20 @@ function LogoutDropdownMenuItem() {
setAuth(RESET)
},
})
return <DropdownMenuItem onClick={() => mutation.mutate()}>Log out</DropdownMenuItem>
return (
<DropdownMenuItem onClick={() => mutation.mutate()}>
<ExitIcon className="h-4 w-4 mr-2" />
Log out
</DropdownMenuItem>
)
}

function CreateOrganizationDropdownMenuItem() {
return (
<OrganizationCreateSheet>
<SheetTrigger asChild>
<Button type="button" variant={'ghost'} size={'default'} className="w-full justify-start font-normal px-2 h-8">
<PlusIcon className="h-4 w-4 mr-2" />
Create Organization
</Button>
</SheetTrigger>
Expand Down

0 comments on commit 0dbf3fe

Please sign in to comment.