fix: issue activity sort order componenet import (#6098)
This commit is contained in:
parent
fa2e60101f
commit
9dbb2b26c3
3 changed files with 7 additions and 5 deletions
|
|
@ -1,28 +0,0 @@
|
|||
"use client";
|
||||
|
||||
import { FC, memo } from "react";
|
||||
import { ArrowUpWideNarrow, ArrowDownWideNarrow } from "lucide-react";
|
||||
import { getButtonStyling } from "@plane/ui";
|
||||
// helpers
|
||||
import { cn } from "@/helpers/common.helper";
|
||||
|
||||
export type TActivitySortRoot = {
|
||||
sortOrder: "asc" | "desc";
|
||||
toggleSort: () => void;
|
||||
};
|
||||
export const ActivitySortRoot: FC<TActivitySortRoot> = memo((props) => (
|
||||
<div
|
||||
className={cn(getButtonStyling("neutral-primary", "sm"), "px-2 text-custom-text-300 cursor-pointer")}
|
||||
onClick={() => {
|
||||
props.toggleSort();
|
||||
}}
|
||||
>
|
||||
{props.sortOrder === "asc" ? (
|
||||
<ArrowUpWideNarrow className="size-4 " />
|
||||
) : (
|
||||
<ArrowDownWideNarrow className="size-4 " />
|
||||
)}
|
||||
</div>
|
||||
));
|
||||
|
||||
ActivitySortRoot.displayName = "ActivitySortRoot";
|
||||
Loading…
Add table
Add a link
Reference in a new issue