mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix(layouts): May 2 updates
This commit is contained in:
@@ -631,6 +631,7 @@ shops.getCustomizationsShopCategories = function getCustomizationsShopCategories
|
||||
}
|
||||
});
|
||||
|
||||
let shirtsCategory; // shirts need to be at end
|
||||
each(['shirt', 'skin'], type => {
|
||||
const category = {
|
||||
identifier: type,
|
||||
@@ -651,7 +652,11 @@ shops.getCustomizationsShopCategories = function getCustomizationsShopCategories
|
||||
category.items.push(item);
|
||||
}
|
||||
});
|
||||
categories.push(category);
|
||||
if (type === 'skin') {
|
||||
categories.push(category);
|
||||
} else {
|
||||
shirtsCategory = category;
|
||||
}
|
||||
});
|
||||
|
||||
const animalEarsCategory = {
|
||||
@@ -684,6 +689,8 @@ shops.getCustomizationsShopCategories = function getCustomizationsShopCategories
|
||||
.map(gearItem => getItemInfo(user, 'gear', gearItem, officialPinnedItems, language));
|
||||
categories.push(animalTailsCategory);
|
||||
|
||||
categories.push(shirtsCategory);
|
||||
|
||||
return categories;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user