fix(nx-dev): reverse sort indicators (#18706)

This commit is contained in:
Isaac Mann 2023-08-18 15:43:41 -04:00 committed by GitHub
parent 8183524042
commit d3b4c700ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,11 +98,11 @@ export function PluginDirectory({
<ClockIcon className="h-4 w-4 inline-block mr-0.5 align-bottom"></ClockIcon> <ClockIcon className="h-4 w-4 inline-block mr-0.5 align-bottom"></ClockIcon>
Release Date Release Date
{modifiers.orderBy === 'lastPublishDate' && {modifiers.orderBy === 'lastPublishDate' &&
modifiers.orderDirection === 'DESC' ? ( modifiers.orderDirection === 'ASC' ? (
<ArrowLongUpIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongUpIcon> <ArrowLongUpIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongUpIcon>
) : null} ) : null}
{modifiers.orderBy === 'lastPublishDate' && {modifiers.orderBy === 'lastPublishDate' &&
modifiers.orderDirection === 'ASC' ? ( modifiers.orderDirection === 'DESC' ? (
<ArrowLongDownIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongDownIcon> <ArrowLongDownIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongDownIcon>
) : null} ) : null}
</button> </button>
@ -113,11 +113,11 @@ export function PluginDirectory({
<ArrowDownIcon className="h-4 w-4 inline-block mr-0.5 align-bottom"></ArrowDownIcon> <ArrowDownIcon className="h-4 w-4 inline-block mr-0.5 align-bottom"></ArrowDownIcon>
Downloads Downloads
{modifiers.orderBy === 'npmDownloads' && {modifiers.orderBy === 'npmDownloads' &&
modifiers.orderDirection === 'DESC' ? ( modifiers.orderDirection === 'ASC' ? (
<ArrowLongUpIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongUpIcon> <ArrowLongUpIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongUpIcon>
) : null} ) : null}
{modifiers.orderBy === 'npmDownloads' && {modifiers.orderBy === 'npmDownloads' &&
modifiers.orderDirection === 'ASC' ? ( modifiers.orderDirection === 'DESC' ? (
<ArrowLongDownIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongDownIcon> <ArrowLongDownIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongDownIcon>
) : null} ) : null}
</button> </button>
@ -128,11 +128,11 @@ export function PluginDirectory({
<StarIcon className="h-4 w-4 inline-block mr-0.5 align-bottom"></StarIcon> <StarIcon className="h-4 w-4 inline-block mr-0.5 align-bottom"></StarIcon>
GH Stars GH Stars
{modifiers.orderBy === 'githubStars' && {modifiers.orderBy === 'githubStars' &&
modifiers.orderDirection === 'DESC' ? ( modifiers.orderDirection === 'ASC' ? (
<ArrowLongUpIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongUpIcon> <ArrowLongUpIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongUpIcon>
) : null} ) : null}
{modifiers.orderBy === 'githubStars' && {modifiers.orderBy === 'githubStars' &&
modifiers.orderDirection === 'ASC' ? ( modifiers.orderDirection === 'DESC' ? (
<ArrowLongDownIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongDownIcon> <ArrowLongDownIcon className="h-4 w-4 inline-block ml-0.5 align-bottom"></ArrowLongDownIcon>
) : null} ) : null}
</button> </button>