feat: changed user icon

This commit is contained in:
=
2025-01-21 01:34:21 +05:30
parent 23513158ed
commit 78e894c2bb
4 changed files with 13 additions and 12 deletions
@@ -14,8 +14,10 @@ export const MenuIconButton = <T extends ElementType = "button">({
description,
// wrapping in forward ref with generic component causes the loss of ts definitions on props
inputRef,
lottieIconMode = "forward",
...props
}: MenuItemProps<T> & ComponentPropsWithRef<T>): JSX.Element => {
}: MenuItemProps<T> &
ComponentPropsWithRef<T> & { lottieIconMode?: "reverse" | "forward" }): JSX.Element => {
const iconRef = useRef<DotLottie | null>(null);
return (
<Item
@@ -46,6 +48,7 @@ export const MenuIconButton = <T extends ElementType = "button">({
src={`/lotties/${icon}.json`}
loop
className="h-full w-full"
mode={lottieIconMode}
/>
</div>
)}