forked from polka_billy/porridger
Fixed announcement typing
Expired -> obsolete filter front Removed useless despose utils
This commit is contained in:
@ -16,18 +16,18 @@ const userCategoriesInfos: Record<UserCategory, (ann: Announcement) => string> =
|
||||
`Годен до ${new Date(ann.bestBy).toLocaleDateString('ru')}`
|
||||
),
|
||||
needDispose: (ann: Announcement) => (
|
||||
`Были заинтересованы: ${ann.bookedBy} чел.`
|
||||
`Было заинтересно ${ann.bookedBy} чел.`
|
||||
),
|
||||
}
|
||||
|
||||
const composeUserCategoriesFilters: Record<UserCategory, () => FiltersType> = {
|
||||
givingOut: () => ({
|
||||
userId: getId(),
|
||||
expired: false,
|
||||
obsolete: false,
|
||||
}),
|
||||
needDispose: () => ({
|
||||
userId: getId(),
|
||||
expired: true,
|
||||
obsolete: true,
|
||||
}),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user