Skip to content

Commit

Permalink
remove unused changeOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadPCh committed Jun 26, 2024
1 parent 9135b8e commit efd01d2
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,6 @@ const ProfileProjectsTab: FC<IUserProfileView> = () => {
const { formatMessage } = useIntl();
const userName = getUserName(user);

const changeOrder = (orderBy: EOrderBy) => {
if (orderBy === order.by) {
setOrder({
by: orderBy,
direction:
order.direction === EDirection.ASC
? EDirection.DESC
: EDirection.ASC,
});
} else {
setOrder({
by: orderBy,
direction: EDirection.DESC,
});
}
};

useEffect(() => {
if (!user) return;
const fetchUserProjects = async () => {
Expand Down

0 comments on commit efd01d2

Please sign in to comment.