Skip to content

Commit

Permalink
chore: revert prop changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 committed Jan 30, 2025
1 parent 58977e0 commit dfc5cb4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions web/core/components/core/list/list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { cn } from "@/helpers/common.helper";
import { useAppRouter } from "@/hooks/use-app-router";

interface IListItemProps {
title?: string;
title: string;
itemLink: string;
onItemClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
prependTitleElement?: JSX.Element;
Expand Down Expand Up @@ -75,11 +75,9 @@ export const ListItem: FC<IListItemProps> = (props) => {
{prependTitleElement && (
<span className="flex items-center flex-shrink-0 truncate">{prependTitleElement}</span>
)}
{title && (
<Tooltip tooltipContent={title} position="top" isMobile={isMobile}>
<span className="truncate text-sm">{title}</span>
</Tooltip>
)}
<Tooltip tooltipContent={title} position="top" isMobile={isMobile}>
<span className="truncate text-sm">{title}</span>
</Tooltip>
</div>
{appendTitleElement && <span className="flex items-center flex-shrink-0">{appendTitleElement}</span>}
</ControlLink>
Expand Down

0 comments on commit dfc5cb4

Please sign in to comment.