fix(my-joy-beta): fix pkg vcpus sort

This commit is contained in:
Sérgio Ramos 2018-02-21 22:43:58 +00:00
parent 3bfc7bd14b
commit 9d7e4e22d5

View File

@ -154,7 +154,7 @@ export const Package = ({
)} )}
</TableTd> </TableTd>
{hasVms && ( {hasVms && (
<TableTd right bold={sortBy === 'vcpu'} selected={selected}> <TableTd right bold={sortBy === 'vcpus'} selected={selected}>
{vcpus} {vcpus}
</TableTd> </TableTd>
)} )}
@ -213,9 +213,9 @@ export const Packages = ({
{hasVms && ( {hasVms && (
<TableTh <TableTh
xs="100" xs="100"
onClick={() => onSortBy('vcpu', sortOrder)} onClick={() => onSortBy('vcpus', sortOrder)}
sortOrder={sortOrder} sortOrder={sortOrder}
showSort={sortBy === 'vcpu'} showSort={sortBy === 'vcpus'}
right right
middle middle
actionable actionable