-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IR#59] - close_avatar_dropdown_on_item_click
- Loading branch information
Showing
37 changed files
with
465 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"use client" | ||
|
||
import { useCtrlKModal } from "@/store/ui/ctrlKModal" | ||
import { useEffect } from "react" | ||
|
||
export function CtrlKBadge() { | ||
const ctrlKModal = useCtrlKModal() | ||
|
||
useEffect(() => { | ||
const handleKeydown = (e: KeyboardEvent) => { | ||
if (e.key === "k" && (e.metaKey || e.ctrlKey)) { | ||
//to prevent focus state on browser searchbar | ||
e.preventDefault() | ||
ctrlKModal.toggle() | ||
} | ||
} | ||
document.addEventListener("keydown", handleKeydown) | ||
return () => document.removeEventListener("keydown", handleKeydown) | ||
}, [ctrlKModal, ctrlKModal.toggle]) | ||
|
||
return <div className="bg-icon-color rounded inline-block text-title-foreground px-[4px] py-[2px[">⌘+K</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Link from "next/link" | ||
import { FiPhoneCall } from "react-icons/fi" | ||
|
||
import { contact } from "@/constant/contacts" | ||
import { DropdownContainer } from "@/components/ui" | ||
|
||
export function SupportButton() { | ||
return ( | ||
<DropdownContainer | ||
classNameDropdownContainer="hidden mobile:flex" | ||
className="before:translate-x-[-300%] translate-x-[35%] w-[125px]" | ||
icon={<FiPhoneCall size={28} />}> | ||
<div className="flex flex-col gap-y-2 justify-center items-center px-4 py-2"> | ||
<div className="flex flex-col justify-center items-center"> | ||
<Link | ||
className="hover:text-brand text-title text-center duration-300" | ||
href={contact.telegram} | ||
target="_blank" | ||
rel="preload"> | ||
Telegram | ||
</Link> | ||
<p className="whitespace-nowrap">(response 8s)</p> | ||
</div> | ||
</div> | ||
</DropdownContainer> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.