Skip to content

Commit

Permalink
(BSR)[PRO] chore: remove deprecated todo
Browse files Browse the repository at this point in the history
  • Loading branch information
rchaffal-pass committed Jan 6, 2025
1 parent 72ea44b commit c78d6ec
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions pro/src/commons/hooks/usePagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ export const usePagination = <T>(
}
}

// TODO: 27/10/2023
// we duplicate this hook for now since bookings pages also used it
// once we have adapted bookings pagination we can delete the old one
// this is planned in PC-25444
export const usePaginationWithSearchParams = (
itemsPerPage: number,
totalCount: number = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import { renderWithProviders } from 'commons/utils/renderWithProviders'

import { CollectiveOffers } from '../CollectiveOffers'

//TODO : extract inital values and constant to reduce code duplication with CollectiveOffers.spec.tsx

vi.mock('react-router-dom', async () => ({
...(await vi.importActual('react-router-dom')),
useNavigate: vi.fn(),
Expand Down
3 changes: 0 additions & 3 deletions pro/src/pages/IndividualOffer/commons/serializers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export const serializeDurationMinutes = (
export const serializeExtraDataForPatch = (
formValues: Partial<IndividualOfferFormValues>
): PostOfferBodyModel['extraData'] | undefined => {
// TODO: change api create and update offer in order not to save
// extra data fields that's aren't link to offer subCategory

const extraData: PostOfferBodyModel['extraData'] = {}
extraData.author = formValues.author
extraData.gtl_id = formValues.gtl_id
Expand Down

0 comments on commit c78d6ec

Please sign in to comment.