diff --git a/src/components/GlobalModals.js b/src/components/GlobalModals.js index ad420a4..9a5d24a 100644 --- a/src/components/GlobalModals.js +++ b/src/components/GlobalModals.js @@ -64,7 +64,13 @@ export default function GlobalModals() { content={sortedTracks} idField="pkgid" defaultContent={[...defaultSettings.ownedTracks]} - typeFilter={{ key: 'primaryType', oval: 'oval', road: 'road' }} + typeFilter={{ + key: 'primaryType', + oval: 'oval', + road: 'road', + dirtRoad: 'dirt_road', + dirtOval: 'dirt_oval', + }} save={getSettingUpdater('ownedTracks')} favourites={favouriteTracks} saveFavourites={getSettingUpdater('favouriteTracks')} @@ -78,7 +84,14 @@ export default function GlobalModals() { content={sortedCars} idField="sku" defaultContent={[...defaultSettings.ownedCars]} - typeFilter={{ key: 'discountGroupNames', oval: ['oval car'], road: ['road car'] }} + typeFilter={{ + key: 'categories', + oval: ['oval'], + sportsCar: ['sports_car'], + formulaCar: ['formula_car'], + dirtRoad: ['dirt_road'], + dirtOval: ['dirt_oval'], + }} save={getSettingUpdater('ownedCars')} favourites={favouriteCars} saveFavourites={getSettingUpdater('favouriteCars')} diff --git a/src/components/modal/ContentModal.js b/src/components/modal/ContentModal.js index 7764181..d7870e3 100644 --- a/src/components/modal/ContentModal.js +++ b/src/components/modal/ContentModal.js @@ -27,12 +27,21 @@ type Props = { key: string, oval: string, road: string, + dirtOval: string, + dirtRoad: string, + }|{ + key: string, + oval: string, + formulaCar: string, + sportsCar: string, + dirtOval: string, + dirtRoad: string, } }; export default function ContentModal({ id, isOpen, onClose, title, save, content, idField, defaultContent, ownedContent, favourites, - saveFavourites, typeFilter, + saveFavourites, typeFilter, }: Props) { const { t } = useTranslation(); @@ -95,7 +104,7 @@ export default function ContentModal({
{t('Use the checkbox to set the content you own, and use the star to set your favourite content.')}