docs(core): change npm download icon (#19230)
This commit is contained in:
parent
64c410d99d
commit
b5ac50a773
@ -1,5 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
ArrowDownIcon,
|
ArrowDownTrayIcon,
|
||||||
ClockIcon,
|
ClockIcon,
|
||||||
StarIcon,
|
StarIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
@ -117,7 +117,7 @@ function NpmDownloadsWidget({
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<abbr data-tooltip="Monthly NPM Downloads" data-tooltip-align-right>
|
<abbr data-tooltip="Monthly NPM Downloads" data-tooltip-align-right>
|
||||||
<ArrowDownIcon className="h-4 w-4 inline-block mx-0.5 align-bottom"></ArrowDownIcon>
|
<ArrowDownTrayIcon className="h-4 w-4 inline-block mx-0.5 align-bottom"></ArrowDownTrayIcon>
|
||||||
{shortenNumber(npmDownloads)}
|
{shortenNumber(npmDownloads)}
|
||||||
<span className="md:hidden">
|
<span className="md:hidden">
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
ArrowDownIcon,
|
|
||||||
ArrowLongDownIcon,
|
ArrowLongDownIcon,
|
||||||
ArrowLongUpIcon,
|
ArrowLongUpIcon,
|
||||||
|
ArrowDownTrayIcon,
|
||||||
ClockIcon,
|
ClockIcon,
|
||||||
StarIcon,
|
StarIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
@ -110,7 +110,7 @@ export function PluginDirectory({
|
|||||||
className="rounded-sm border border-slate-200 bg-white py-1 px-1 font-semibold transition hover:bg-slate-100 dark:border-slate-700 dark:bg-slate-800 dark:hover:bg-slate-700"
|
className="rounded-sm border border-slate-200 bg-white py-1 px-1 font-semibold transition hover:bg-slate-100 dark:border-slate-700 dark:bg-slate-800 dark:hover:bg-slate-700"
|
||||||
onClick={() => setOrderBy('npmDownloads')}
|
onClick={() => setOrderBy('npmDownloads')}
|
||||||
>
|
>
|
||||||
<ArrowDownIcon className="h-4 w-4 inline-block mr-0.5 align-bottom"></ArrowDownIcon>
|
<ArrowDownTrayIcon className="h-4 w-4 inline-block mr-0.5 align-bottom"></ArrowDownTrayIcon>
|
||||||
Downloads
|
Downloads
|
||||||
{modifiers.orderBy === 'npmDownloads' &&
|
{modifiers.orderBy === 'npmDownloads' &&
|
||||||
modifiers.orderDirection === 'ASC' ? (
|
modifiers.orderDirection === 'ASC' ? (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user