chore: feedback fixes

This commit is contained in:
Julie Plantey 2022-11-23 11:41:13 +01:00
parent 97a452afae
commit c2b6052b15
2 changed files with 5 additions and 5 deletions

View File

@ -7,8 +7,7 @@ import { Table, Th, Thead, Tr } from '@strapi/design-system/Table';
import { Tooltip } from '@strapi/design-system/Tooltip';
import { Typography } from '@strapi/design-system/Typography';
import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden';
import CarretDown from '@strapi/icons/CarretDown';
import CarretUp from '@strapi/icons/CarretUp';
import { CarretDown, CarretUp } from '@strapi/icons';
import { getTrad } from '../../utils';
import { AssetDefinition, tableHeaders, FolderDefinition } from '../../constants';
@ -70,9 +69,10 @@ export const TableList = ({
<IconButton
label={sortLabel}
onClick={() => handleClickSort(isSorted, name)}
icon={isUp ? <CarretUp /> : <CarretDown />}
noBorder
/>
>
{isUp ? <CarretUp /> : <CarretDown />}
</IconButton>
)
}
key={key}

View File

@ -256,7 +256,7 @@ export const MediaLibrary = () => {
!assetsLoading && !foldersLoading ? [...folders, ...assets] : []
}
selected={selected}
sortQuery={query?.sort}
sortQuery={query?.sort ?? ''}
/>
)}