Alphabetized categories on home page (again).
This commit is contained in:
parent
935340d90e
commit
58a7fd8405
|
@ -14,7 +14,7 @@ import { getProductsForCategoryId } from '../data/products';
|
|||
Your one-stop shop for all your after-market Dasher supplies.
|
||||
</p>
|
||||
<ul role="list" class="link-card-grid">
|
||||
{ALL_CATEGORIES.children.filter(categoryNode => getProductsForCategoryId(categoryNode.value.id).length > 0).map(categoryNode => (
|
||||
{ALL_CATEGORIES.children.filter(categoryNode => getProductsForCategoryId(categoryNode.value.id).length > 0).sort((left, right) => left.value.category.localeCompare(right.value.category)).map(categoryNode => (
|
||||
<CategoryCard
|
||||
category={categoryNode.value}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user