diff --git a/pro/eslint.config.mjs b/pro/eslint.config.mjs index ef975bf5641..52998cd805f 100644 --- a/pro/eslint.config.mjs +++ b/pro/eslint.config.mjs @@ -83,8 +83,6 @@ export default tseslint.config( '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unused-expressions': 'off', - '@typescript-eslint/no-unused-vars': 'off', - 'no-unused-vars': 'off', 'prefer-const': 'off', 'prefer-rest-params': 'off', 'react/react-in-jsx-scope': 'off', diff --git a/pro/src/Root.tsx b/pro/src/Root.tsx index 48e03c70286..0b5aa7843c4 100644 --- a/pro/src/Root.tsx +++ b/pro/src/Root.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Provider } from 'react-redux' import { AppRouter } from 'app/AppRouter/AppRouter' diff --git a/pro/src/app/App/analytics/__specs__/firebase.spec.tsx b/pro/src/app/App/analytics/__specs__/firebase.spec.tsx index 248d2b70e33..1523055a7a4 100644 --- a/pro/src/app/App/analytics/__specs__/firebase.spec.tsx +++ b/pro/src/app/App/analytics/__specs__/firebase.spec.tsx @@ -2,7 +2,6 @@ import * as firebaseAnalytics from '@firebase/analytics' import * as firebase from '@firebase/app' import * as firebaseRemoteConfig from '@firebase/remote-config' import { waitFor } from '@testing-library/react' -import React from 'react' import { expect, vi } from 'vitest' import { firebaseConfig } from 'commons/config/firebase' diff --git a/pro/src/app/AppRouter/ErrorBoundary.tsx b/pro/src/app/AppRouter/ErrorBoundary.tsx index 10feaa7dc41..6c4130a0dc1 100644 --- a/pro/src/app/AppRouter/ErrorBoundary.tsx +++ b/pro/src/app/AppRouter/ErrorBoundary.tsx @@ -1,5 +1,5 @@ import * as Sentry from '@sentry/react' -import React, { useEffect } from 'react' +import { useEffect } from 'react' import { useRouteError } from 'react-router-dom' import { Unavailable } from 'pages/Errors/Unavailable/Unavailable' diff --git a/pro/src/app/AppRouter/subroutesReimbursements.tsx b/pro/src/app/AppRouter/subroutesReimbursements.tsx index d227f8eb18d..d7320c09e96 100644 --- a/pro/src/app/AppRouter/subroutesReimbursements.tsx +++ b/pro/src/app/AppRouter/subroutesReimbursements.tsx @@ -1,6 +1,5 @@ /* No need to test this file */ /* istanbul ignore file */ -import React from 'react' import { Navigate } from 'react-router' import { BankInformations } from 'pages/Reimbursements/BankInformations/BankInformations' diff --git a/pro/src/app/AppRouter/subroutesSignupJourneyMap.tsx b/pro/src/app/AppRouter/subroutesSignupJourneyMap.tsx index f19bd20b518..ba4bc12fcd7 100644 --- a/pro/src/app/AppRouter/subroutesSignupJourneyMap.tsx +++ b/pro/src/app/AppRouter/subroutesSignupJourneyMap.tsx @@ -1,6 +1,5 @@ /* No need to test this file */ /* istanbul ignore file */ -import React from 'react' import { Activity } from 'components/SignupJourneyForm/Activity/Activity' import { OffererAuthentication } from 'components/SignupJourneyForm/Authentication/OffererAuthentication' diff --git a/pro/src/app/AppRouter/subroutesSignupMap.tsx b/pro/src/app/AppRouter/subroutesSignupMap.tsx index 2eab9b80740..db195174c9b 100644 --- a/pro/src/app/AppRouter/subroutesSignupMap.tsx +++ b/pro/src/app/AppRouter/subroutesSignupMap.tsx @@ -1,6 +1,5 @@ /* No need to test this file */ /* istanbul ignore file */ -import React from 'react' import { SignupConfirmation } from 'pages/Signup/SignupConfirmation/SignupConfirmation' import { SignupContainer } from 'pages/Signup/SignupContainer/SignupContainer' diff --git a/pro/src/commons/core/OfferEducational/utils/hasStatusCode.ts b/pro/src/commons/core/OfferEducational/utils/hasStatusCode.ts index 94d9f2fb4a3..9e059ab1005 100644 --- a/pro/src/commons/core/OfferEducational/utils/hasStatusCode.ts +++ b/pro/src/commons/core/OfferEducational/utils/hasStatusCode.ts @@ -1,8 +1,3 @@ -type Error = { - status: number - code: string -} - type ErrorWithErrorsCode = { status: number errors: { diff --git a/pro/src/commons/hooks/__specs__/useAccessibilityOptions.spec.tsx b/pro/src/commons/hooks/__specs__/useAccessibilityOptions.spec.tsx index d7995c6881c..adf7fb75e75 100644 --- a/pro/src/commons/hooks/__specs__/useAccessibilityOptions.spec.tsx +++ b/pro/src/commons/hooks/__specs__/useAccessibilityOptions.spec.tsx @@ -1,7 +1,6 @@ import { render, screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Formik } from 'formik' -import React from 'react' import { CheckboxGroup } from 'ui-kit/form/CheckboxGroup/CheckboxGroup' diff --git a/pro/src/commons/hooks/__specs__/useNotification.spec.tsx b/pro/src/commons/hooks/__specs__/useNotification.spec.tsx index 6aef487f68f..3421dc0d924 100644 --- a/pro/src/commons/hooks/__specs__/useNotification.spec.tsx +++ b/pro/src/commons/hooks/__specs__/useNotification.spec.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { useNotification } from 'commons/hooks/useNotification' import * as notificationReducer from 'commons/store/notifications/reducer' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/commons/hooks/__specs__/useOfferWizardMode.spec.tsx b/pro/src/commons/hooks/__specs__/useOfferWizardMode.spec.tsx index a3d7875e2c8..8894559a75b 100644 --- a/pro/src/commons/hooks/__specs__/useOfferWizardMode.spec.tsx +++ b/pro/src/commons/hooks/__specs__/useOfferWizardMode.spec.tsx @@ -1,5 +1,4 @@ import { renderHook } from '@testing-library/react' -import React from 'react' import { MemoryRouter } from 'react-router-dom' import { OFFER_WIZARD_MODE } from 'commons/core/Offers/constants' diff --git a/pro/src/commons/store/StoreProvider/StoreProvider.tsx b/pro/src/commons/store/StoreProvider/StoreProvider.tsx index eebac22a8f8..96755f5fdac 100644 --- a/pro/src/commons/store/StoreProvider/StoreProvider.tsx +++ b/pro/src/commons/store/StoreProvider/StoreProvider.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { useDispatch } from 'react-redux' import { api } from 'apiClient/api' diff --git a/pro/src/commons/store/StoreProvider/__specs__/StoreProvider.spec.tsx b/pro/src/commons/store/StoreProvider/__specs__/StoreProvider.spec.tsx index 6a84868bc1b..a40c3b1c837 100644 --- a/pro/src/commons/store/StoreProvider/__specs__/StoreProvider.spec.tsx +++ b/pro/src/commons/store/StoreProvider/__specs__/StoreProvider.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { api } from 'apiClient/api' import { UserRole } from 'apiClient/v1' diff --git a/pro/src/commons/utils/renderWithProviders.tsx b/pro/src/commons/utils/renderWithProviders.tsx index b6fd957f0c2..003b27452bf 100644 --- a/pro/src/commons/utils/renderWithProviders.tsx +++ b/pro/src/commons/utils/renderWithProviders.tsx @@ -1,6 +1,6 @@ /* istanbul ignore file: Those are test helpers, their coverage is not relevant */ import { render } from "@testing-library/react"; -import React, { ReactNode } from "react"; +import { ReactNode } from "react"; import { Provider } from "react-redux"; import { createMemoryRouter, RouterProvider } from "react-router-dom"; import { SWRConfig } from "swr"; diff --git a/pro/src/commons/utils/timezone.ts b/pro/src/commons/utils/timezone.ts index 6f0d43d1637..66b4a859a87 100644 --- a/pro/src/commons/utils/timezone.ts +++ b/pro/src/commons/utils/timezone.ts @@ -1,4 +1,4 @@ -import { de, fr } from 'date-fns/locale' +import { fr } from 'date-fns/locale' import { format, formatInTimeZone, diff --git a/pro/src/components/AccessibilitySummarySection/AccessibilitySummarySection.tsx b/pro/src/components/AccessibilitySummarySection/AccessibilitySummarySection.tsx index d61a5702303..0618df43218 100644 --- a/pro/src/components/AccessibilitySummarySection/AccessibilitySummarySection.tsx +++ b/pro/src/components/AccessibilitySummarySection/AccessibilitySummarySection.tsx @@ -1,4 +1,4 @@ -import React, { ReactNode } from 'react' +import { ReactNode } from 'react' import { AccessibilityEnum } from 'commons/core/shared/types' import { SummaryDescriptionList } from 'components/SummaryLayout/SummaryDescriptionList' diff --git a/pro/src/components/Bookings/BookingsRecapTable/BookingsRecapTable.spec.tsx b/pro/src/components/Bookings/BookingsRecapTable/BookingsRecapTable.spec.tsx index 07f8fc7f41b..c1c51bc137e 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/BookingsRecapTable.spec.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/BookingsRecapTable.spec.tsx @@ -1,6 +1,6 @@ import { screen, waitFor, within } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React, { ComponentProps } from 'react' +import { ComponentProps } from 'react' import { expect } from 'vitest' import { api } from 'apiClient/api' diff --git a/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/Cells/__specs__/BookingStatusCellHistory.spec.tsx b/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/Cells/__specs__/BookingStatusCellHistory.spec.tsx index 1e4d8e529c2..cfd8feabaae 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/Cells/__specs__/BookingStatusCellHistory.spec.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/Cells/__specs__/BookingStatusCellHistory.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { BookingRecapStatus } from 'apiClient/v1' diff --git a/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/CollectiveBookingsTable.tsx b/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/CollectiveBookingsTable.tsx index fda1e63cf99..25bc6fd8306 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/CollectiveBookingsTable.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/CollectiveBookingsTable.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { useEffect } from 'react' +import { useEffect } from 'react' import { CollectiveBookingResponseModel } from 'apiClient/v1' import { useAnalytics } from 'app/App/analytics/firebase' diff --git a/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/__specs__/CollectiveTableRow.spec.tsx b/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/__specs__/CollectiveTableRow.spec.tsx index 51b918f81e2..feaefc30627 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/__specs__/CollectiveTableRow.spec.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/__specs__/CollectiveTableRow.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { diff --git a/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/__specs__/IndividualBookingsTable.spec.tsx b/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/__specs__/IndividualBookingsTable.spec.tsx index bbb94948a66..48a696407ab 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/__specs__/IndividualBookingsTable.spec.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/BookingsTable/__specs__/IndividualBookingsTable.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { bookingRecapFactory, diff --git a/pro/src/components/Bookings/BookingsRecapTable/Filters/__specs__/FilterByBookingStatus.spec.tsx b/pro/src/components/Bookings/BookingsRecapTable/Filters/__specs__/FilterByBookingStatus.spec.tsx index 0b295e22c7d..4393970305f 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/Filters/__specs__/FilterByBookingStatus.spec.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/Filters/__specs__/FilterByBookingStatus.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { BookingRecapResponseModel, diff --git a/pro/src/components/Bookings/BookingsRecapTable/Filters/__specs__/FilterByOmniSearch.spec.tsx b/pro/src/components/Bookings/BookingsRecapTable/Filters/__specs__/FilterByOmniSearch.spec.tsx index 8b573dff71c..4de01824346 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/Filters/__specs__/FilterByOmniSearch.spec.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/Filters/__specs__/FilterByOmniSearch.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Audience } from 'commons/core/shared/types' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/components/Bookings/BookingsRecapTable/Header/Header.tsx b/pro/src/components/Bookings/BookingsRecapTable/Header/Header.tsx index dcca5b75216..7f16fee0be4 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/Header/Header.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/Header/Header.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { pluralize } from 'commons/utils/pluralize' import fullRefreshIcon from 'icons/full-refresh.svg' import { Button } from 'ui-kit/Button/Button' diff --git a/pro/src/components/Bookings/BookingsRecapTable/Header/__specs__/Header.spec.tsx b/pro/src/components/Bookings/BookingsRecapTable/Header/__specs__/Header.spec.tsx index 48d28332495..ad0e45c085c 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/Header/__specs__/Header.spec.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/Header/__specs__/Header.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { Header, HeaderProps } from '../Header' diff --git a/pro/src/components/Bookings/BookingsRecapTable/NoFilteredBookings/NoFilteredBookings.tsx b/pro/src/components/Bookings/BookingsRecapTable/NoFilteredBookings/NoFilteredBookings.tsx index 69b83c45dfc..0878447cc8d 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/NoFilteredBookings/NoFilteredBookings.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/NoFilteredBookings/NoFilteredBookings.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import fullRefresh from 'icons/full-refresh.svg' import strokeSearchIcon from 'icons/stroke-search.svg' import { Button } from 'ui-kit/Button/Button' diff --git a/pro/src/components/Bookings/BookingsRecapTable/NoFilteredBookings/__specs__/NoFilteredBookings.spec.tsx b/pro/src/components/Bookings/BookingsRecapTable/NoFilteredBookings/__specs__/NoFilteredBookings.spec.tsx index b4a4e9065fe..76b0b5e9a3c 100644 --- a/pro/src/components/Bookings/BookingsRecapTable/NoFilteredBookings/__specs__/NoFilteredBookings.spec.tsx +++ b/pro/src/components/Bookings/BookingsRecapTable/NoFilteredBookings/__specs__/NoFilteredBookings.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { NoFilteredBookings } from '../NoFilteredBookings' diff --git a/pro/src/components/Bookings/PreFilters/FilterByBookingStatusPeriod/FilterByBookingStatusPeriod.tsx b/pro/src/components/Bookings/PreFilters/FilterByBookingStatusPeriod/FilterByBookingStatusPeriod.tsx index 7df134c9535..a6213ba2be5 100644 --- a/pro/src/components/Bookings/PreFilters/FilterByBookingStatusPeriod/FilterByBookingStatusPeriod.tsx +++ b/pro/src/components/Bookings/PreFilters/FilterByBookingStatusPeriod/FilterByBookingStatusPeriod.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { PreFiltersParams } from 'commons/core/Bookings/types' import { PeriodSelector } from 'ui-kit/form/PeriodSelector/PeriodSelector' diff --git a/pro/src/components/Bookings/PreFilters/FilterByEventDate.tsx b/pro/src/components/Bookings/PreFilters/FilterByEventDate.tsx index 0235a9daf3b..1fbb136b0a9 100644 --- a/pro/src/components/Bookings/PreFilters/FilterByEventDate.tsx +++ b/pro/src/components/Bookings/PreFilters/FilterByEventDate.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { DEFAULT_PRE_FILTERS } from 'commons/core/Bookings/constants' import { PreFiltersParams } from 'commons/core/Bookings/types' import { isDateValid } from 'commons/utils/date' diff --git a/pro/src/components/Bookings/PreFilters/FilterByVenue.tsx b/pro/src/components/Bookings/PreFilters/FilterByVenue.tsx index 0c95c005611..e892d6baa4e 100644 --- a/pro/src/components/Bookings/PreFilters/FilterByVenue.tsx +++ b/pro/src/components/Bookings/PreFilters/FilterByVenue.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { ALL_STRUCTURES_OPTION, ALL_VENUES_OPTION, diff --git a/pro/src/components/Bookings/PreFilters/__specs__/FilterByEventDate.spec.tsx b/pro/src/components/Bookings/PreFilters/__specs__/FilterByEventDate.spec.tsx index d5be5949e83..7156b25dc2c 100644 --- a/pro/src/components/Bookings/PreFilters/__specs__/FilterByEventDate.spec.tsx +++ b/pro/src/components/Bookings/PreFilters/__specs__/FilterByEventDate.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { EMPTY_FILTER_VALUE } from 'commons/core/Bookings/constants' diff --git a/pro/src/components/CollectiveOffersTable/CollectiveOfferRow/CollectiveActionsCells/CollectiveActionsCells.spec.tsx b/pro/src/components/CollectiveOffersTable/CollectiveOfferRow/CollectiveActionsCells/CollectiveActionsCells.spec.tsx index 31daed02b5d..a2aca661555 100644 --- a/pro/src/components/CollectiveOffersTable/CollectiveOfferRow/CollectiveActionsCells/CollectiveActionsCells.spec.tsx +++ b/pro/src/components/CollectiveOffersTable/CollectiveOfferRow/CollectiveActionsCells/CollectiveActionsCells.spec.tsx @@ -6,7 +6,6 @@ import createFetchMock from 'vitest-fetch-mock' import { api } from 'apiClient/api' import { CollectiveOfferDisplayedStatus, - CollectiveOfferStatus, CollectiveOfferAllowedAction, CollectiveOfferTemplateAllowedAction, OfferAddressType, diff --git a/pro/src/components/CollectiveOffersTable/CollectiveOfferRow/CollectiveOfferRow.tsx b/pro/src/components/CollectiveOffersTable/CollectiveOfferRow/CollectiveOfferRow.tsx index 736011a0d3d..09e5ef08015 100644 --- a/pro/src/components/CollectiveOffersTable/CollectiveOfferRow/CollectiveOfferRow.tsx +++ b/pro/src/components/CollectiveOffersTable/CollectiveOfferRow/CollectiveOfferRow.tsx @@ -7,7 +7,6 @@ import { } from 'apiClient/v1' import { computeURLCollectiveOfferId } from 'commons/core/OfferEducational/utils/computeURLCollectiveOfferId' import { CollectiveSearchFiltersParams } from 'commons/core/Offers/types' -import { useActiveFeature } from 'commons/hooks/useActiveFeature' import { CheckboxCell } from 'components/OffersTable/Cells/CheckboxCell' import { OfferNameCell } from 'components/OffersTable/Cells/OfferNameCell/OfferNameCell' import { OfferVenueCell } from 'components/OffersTable/Cells/OfferVenueCell' diff --git a/pro/src/components/CollectiveStatusLabel/CollectiveStatusLabel.spec.tsx b/pro/src/components/CollectiveStatusLabel/CollectiveStatusLabel.spec.tsx index b77489e4d6d..80af64a3600 100644 --- a/pro/src/components/CollectiveStatusLabel/CollectiveStatusLabel.spec.tsx +++ b/pro/src/components/CollectiveStatusLabel/CollectiveStatusLabel.spec.tsx @@ -2,7 +2,6 @@ import { screen } from '@testing-library/react' import { CollectiveOfferDisplayedStatus, - CollectiveOfferStatus, } from 'apiClient/v1' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/components/CollectiveStatusLabel/CollectiveStatusLabel.tsx b/pro/src/components/CollectiveStatusLabel/CollectiveStatusLabel.tsx index 85aac5137fa..34a3f5c0f95 100644 --- a/pro/src/components/CollectiveStatusLabel/CollectiveStatusLabel.tsx +++ b/pro/src/components/CollectiveStatusLabel/CollectiveStatusLabel.tsx @@ -2,7 +2,6 @@ import cn from 'classnames' import { ReactElement } from 'react' import { - CollectiveOfferStatus, CollectiveOfferDisplayedStatus, } from 'apiClient/v1' import { useActiveFeature } from 'commons/hooks/useActiveFeature' diff --git a/pro/src/components/ConstraintCheck/ConstraintCheck.tsx b/pro/src/components/ConstraintCheck/ConstraintCheck.tsx index 70a40006217..30da478a163 100644 --- a/pro/src/components/ConstraintCheck/ConstraintCheck.tsx +++ b/pro/src/components/ConstraintCheck/ConstraintCheck.tsx @@ -1,4 +1,4 @@ -import React, { FunctionComponent } from 'react' +import { FunctionComponent } from 'react' import { FieldError } from 'ui-kit/form/shared/FieldError/FieldError' diff --git a/pro/src/components/FormLayout/FormLayout.stories.tsx b/pro/src/components/FormLayout/FormLayout.stories.tsx index c512941f0a4..66da5532bf4 100644 --- a/pro/src/components/FormLayout/FormLayout.stories.tsx +++ b/pro/src/components/FormLayout/FormLayout.stories.tsx @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { Button } from 'ui-kit/Button/Button' import { ButtonVariant } from 'ui-kit/Button/types' diff --git a/pro/src/components/FormLayout/FormLayoutMandatoryInfo.tsx b/pro/src/components/FormLayout/FormLayoutMandatoryInfo.tsx index 96fa755e877..115e17f6958 100644 --- a/pro/src/components/FormLayout/FormLayoutMandatoryInfo.tsx +++ b/pro/src/components/FormLayout/FormLayoutMandatoryInfo.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import style from './FormLayout.module.scss' diff --git a/pro/src/components/FormLayout/__specs__/FormLayoutDescription.spec.tsx b/pro/src/components/FormLayout/__specs__/FormLayoutDescription.spec.tsx index df9831e263c..f4ad106f8a1 100644 --- a/pro/src/components/FormLayout/__specs__/FormLayoutDescription.spec.tsx +++ b/pro/src/components/FormLayout/__specs__/FormLayoutDescription.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { FormLayoutDescription, diff --git a/pro/src/components/HelpLink/HelpLink.stories.tsx b/pro/src/components/HelpLink/HelpLink.stories.tsx index ac6532b7a36..1baf21bf081 100644 --- a/pro/src/components/HelpLink/HelpLink.stories.tsx +++ b/pro/src/components/HelpLink/HelpLink.stories.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { withRouter } from 'storybook-addon-remix-react-router' import { HelpLink } from './HelpLink' diff --git a/pro/src/components/HelpLink/HelpLink.tsx b/pro/src/components/HelpLink/HelpLink.tsx index 9c8ee3c5e5c..8a508ceacde 100644 --- a/pro/src/components/HelpLink/HelpLink.tsx +++ b/pro/src/components/HelpLink/HelpLink.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { useAnalytics } from 'app/App/analytics/firebase' import { Events } from 'commons/core/FirebaseEvents/constants' import fullHelpIcon from 'icons/full-help.svg' diff --git a/pro/src/components/ImagePreview/stories/ImagePreview.stories.tsx b/pro/src/components/ImagePreview/stories/ImagePreview.stories.tsx index 2269e41ff90..3c948779146 100644 --- a/pro/src/components/ImagePreview/stories/ImagePreview.stories.tsx +++ b/pro/src/components/ImagePreview/stories/ImagePreview.stories.tsx @@ -1,5 +1,4 @@ import type { StoryObj } from '@storybook/react' -import React from 'react' import { ImagePreview, ImagePreviewScreenProps } from '../ImagePreview' import { ImagePreviewsWrapper } from '../ImagePreviewsWrapper' diff --git a/pro/src/components/ImageUploader/ImageUploader.spec.tsx b/pro/src/components/ImageUploader/ImageUploader.spec.tsx index 064637aa98a..64487091de8 100644 --- a/pro/src/components/ImageUploader/ImageUploader.spec.tsx +++ b/pro/src/components/ImageUploader/ImageUploader.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/components/ImageUploader/components/ButtonAppPreview/__specs__/ButtonAppPreview.spec.tsx b/pro/src/components/ImageUploader/components/ButtonAppPreview/__specs__/ButtonAppPreview.spec.tsx index 19a74d5a66a..b92142b9014 100644 --- a/pro/src/components/ImageUploader/components/ButtonAppPreview/__specs__/ButtonAppPreview.spec.tsx +++ b/pro/src/components/ImageUploader/components/ButtonAppPreview/__specs__/ButtonAppPreview.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { RootState } from 'commons/store/rootReducer' import { UploaderModeEnum } from 'components/ImageUploader/types' diff --git a/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewOffer/AppPreviewOffer.tsx b/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewOffer/AppPreviewOffer.tsx index aa1a5b5025c..eb7c1afc6f0 100644 --- a/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewOffer/AppPreviewOffer.tsx +++ b/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewOffer/AppPreviewOffer.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { ImagePreview } from 'components/ImagePreview/ImagePreview' import { ImagePreviewsWrapper } from 'components/ImagePreview/ImagePreviewsWrapper' import homeShell from 'components/ImageUploader/assets/offer-home-shell.png' diff --git a/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewOffer/__specs__/AppPreviewOffer.spec.tsx b/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewOffer/__specs__/AppPreviewOffer.spec.tsx index 15fedb74312..9683ea1ae93 100644 --- a/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewOffer/__specs__/AppPreviewOffer.spec.tsx +++ b/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewOffer/__specs__/AppPreviewOffer.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { RootState } from 'commons/store/rootReducer' diff --git a/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewVenue/__specs__/AppPreviewVenue.spec.tsx b/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewVenue/__specs__/AppPreviewVenue.spec.tsx index 7ae43ece084..4c57a344dba 100644 --- a/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewVenue/__specs__/AppPreviewVenue.spec.tsx +++ b/pro/src/components/ImageUploader/components/ButtonAppPreview/components/AppPreviewVenue/__specs__/AppPreviewVenue.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/components/ImageUploader/components/ButtonImageDelete/ButtonImageDelete.tsx b/pro/src/components/ImageUploader/components/ButtonImageDelete/ButtonImageDelete.tsx index c693d142226..8266f1cf5ae 100644 --- a/pro/src/components/ImageUploader/components/ButtonImageDelete/ButtonImageDelete.tsx +++ b/pro/src/components/ImageUploader/components/ButtonImageDelete/ButtonImageDelete.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import { useState } from 'react' import fullTrashIcon from 'icons/full-trash.svg' import { Button } from 'ui-kit/Button/Button' diff --git a/pro/src/components/ImageUploader/components/ButtonImageDelete/__specs__/ButtonImageDelete.spec.tsx b/pro/src/components/ImageUploader/components/ButtonImageDelete/__specs__/ButtonImageDelete.spec.tsx index 0107749b493..a7c20f6de28 100644 --- a/pro/src/components/ImageUploader/components/ButtonImageDelete/__specs__/ButtonImageDelete.spec.tsx +++ b/pro/src/components/ImageUploader/components/ButtonImageDelete/__specs__/ButtonImageDelete.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { RootState } from 'commons/store/rootReducer' diff --git a/pro/src/components/ImageUploader/components/ButtonImageEdit/ModalImageEdit/components/ModalImageCrop/ModalImageCrop.tsx b/pro/src/components/ImageUploader/components/ButtonImageEdit/ModalImageEdit/components/ModalImageCrop/ModalImageCrop.tsx index f1c6bafe31b..284fadbf40d 100644 --- a/pro/src/components/ImageUploader/components/ButtonImageEdit/ModalImageEdit/components/ModalImageCrop/ModalImageCrop.tsx +++ b/pro/src/components/ImageUploader/components/ButtonImageEdit/ModalImageEdit/components/ModalImageCrop/ModalImageCrop.tsx @@ -1,6 +1,6 @@ import * as Dialog from '@radix-ui/react-dialog' import { Form, FormikProvider, useFormik } from 'formik' -import React, { useRef } from 'react' +import { useRef } from 'react' import AvatarEditor, { CroppedRect, Position } from 'react-avatar-editor' import { useGetImageBitmap } from 'commons/hooks/useGetBitmap' diff --git a/pro/src/components/IndividualOffer/DialogStockDeleteConfirm/DialogStockEventDeleteConfirm.tsx b/pro/src/components/IndividualOffer/DialogStockDeleteConfirm/DialogStockEventDeleteConfirm.tsx index 51fa02e4c2b..bce28b23f53 100644 --- a/pro/src/components/IndividualOffer/DialogStockDeleteConfirm/DialogStockEventDeleteConfirm.tsx +++ b/pro/src/components/IndividualOffer/DialogStockDeleteConfirm/DialogStockEventDeleteConfirm.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { ConfirmDialog } from 'components/ConfirmDialog/ConfirmDialog' import strokeTrashIcon from 'icons/stroke-trash.svg' diff --git a/pro/src/components/IndividualOffer/DialogStockDeleteConfirm/DialogStockThingDeleteConfirm.tsx b/pro/src/components/IndividualOffer/DialogStockDeleteConfirm/DialogStockThingDeleteConfirm.tsx index 4de94bec2e2..18c6fe3985f 100644 --- a/pro/src/components/IndividualOffer/DialogStockDeleteConfirm/DialogStockThingDeleteConfirm.tsx +++ b/pro/src/components/IndividualOffer/DialogStockDeleteConfirm/DialogStockThingDeleteConfirm.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { ConfirmDialog } from 'components/ConfirmDialog/ConfirmDialog' import strokeTrashIcon from 'icons/stroke-trash.svg' diff --git a/pro/src/components/IndividualOffer/DialogStocksEventEditConfirm/DialogStocksEventEditConfirm.tsx b/pro/src/components/IndividualOffer/DialogStocksEventEditConfirm/DialogStocksEventEditConfirm.tsx index 3dae9d72b1e..e3c6d92f5de 100644 --- a/pro/src/components/IndividualOffer/DialogStocksEventEditConfirm/DialogStocksEventEditConfirm.tsx +++ b/pro/src/components/IndividualOffer/DialogStocksEventEditConfirm/DialogStocksEventEditConfirm.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { ConfirmDialog } from 'components/ConfirmDialog/ConfirmDialog' interface DialogStocksEventEditConfirmProps { diff --git a/pro/src/components/IndividualOffer/IndivualOfferLayout/OfferStatusBanner/OfferStatusBanner.tsx b/pro/src/components/IndividualOffer/IndivualOfferLayout/OfferStatusBanner/OfferStatusBanner.tsx index 90f83f288b3..f89445515df 100644 --- a/pro/src/components/IndividualOffer/IndivualOfferLayout/OfferStatusBanner/OfferStatusBanner.tsx +++ b/pro/src/components/IndividualOffer/IndivualOfferLayout/OfferStatusBanner/OfferStatusBanner.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { OfferStatus } from 'apiClient/v1' import { CGU_URL } from 'commons/utils/config' import { Callout } from 'ui-kit/Callout/Callout' diff --git a/pro/src/components/IndividualOffer/IndivualOfferLayout/__specs__/IndivualOfferLayout.spec.tsx b/pro/src/components/IndividualOffer/IndivualOfferLayout/__specs__/IndivualOfferLayout.spec.tsx index dcf53fbb4ab..14e2e894d77 100644 --- a/pro/src/components/IndividualOffer/IndivualOfferLayout/__specs__/IndivualOfferLayout.spec.tsx +++ b/pro/src/components/IndividualOffer/IndivualOfferLayout/__specs__/IndivualOfferLayout.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { addDays } from 'date-fns' -import React from 'react' import { OfferStatus } from 'apiClient/v1' import { OFFER_WIZARD_MODE } from 'commons/core/Offers/constants' diff --git a/pro/src/components/IndividualOffer/PriceCategoriesScreen/PriceCategoriesForm.tsx b/pro/src/components/IndividualOffer/PriceCategoriesScreen/PriceCategoriesForm.tsx index a5399a0b997..3eb7df66e02 100644 --- a/pro/src/components/IndividualOffer/PriceCategoriesScreen/PriceCategoriesForm.tsx +++ b/pro/src/components/IndividualOffer/PriceCategoriesScreen/PriceCategoriesForm.tsx @@ -1,4 +1,3 @@ -import cn from 'classnames' import type { FieldArrayRenderProps } from 'formik' import { FieldArray, useFormikContext } from 'formik' import { useState } from 'react' diff --git a/pro/src/components/IndividualOffer/PriceCategoriesScreen/__specs__/PriceCategories.RouteLeavingGuard.spec.tsx b/pro/src/components/IndividualOffer/PriceCategoriesScreen/__specs__/PriceCategories.RouteLeavingGuard.spec.tsx index 3a7b5b68a33..ce1f245e7ca 100644 --- a/pro/src/components/IndividualOffer/PriceCategoriesScreen/__specs__/PriceCategories.RouteLeavingGuard.spec.tsx +++ b/pro/src/components/IndividualOffer/PriceCategoriesScreen/__specs__/PriceCategories.RouteLeavingGuard.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { generatePath, Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/components/IndividualOffer/PriceCategoriesScreen/__specs__/PriceCategories.spec.tsx b/pro/src/components/IndividualOffer/PriceCategoriesScreen/__specs__/PriceCategories.spec.tsx index 70bf4324211..ab07335f8c4 100644 --- a/pro/src/components/IndividualOffer/PriceCategoriesScreen/__specs__/PriceCategories.spec.tsx +++ b/pro/src/components/IndividualOffer/PriceCategoriesScreen/__specs__/PriceCategories.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { OfferStatus } from 'apiClient/v1' import { getIndividualOfferFactory } from 'commons/utils/factories/individualApiFactories' diff --git a/pro/src/components/IndividualOffer/Status/Status.tsx b/pro/src/components/IndividualOffer/Status/Status.tsx index 06f90f82805..588637b852a 100644 --- a/pro/src/components/IndividualOffer/Status/Status.tsx +++ b/pro/src/components/IndividualOffer/Status/Status.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { GetIndividualOfferResponseModel } from 'apiClient/v1' import { StatusToggleButton } from 'components/IndividualOffer/Status/StatusToggleButton' diff --git a/pro/src/components/IndividualOffer/Status/__specs__/StatusToggleButton.spec.tsx b/pro/src/components/IndividualOffer/Status/__specs__/StatusToggleButton.spec.tsx index 6d173410b7e..58709304fd8 100644 --- a/pro/src/components/IndividualOffer/Status/__specs__/StatusToggleButton.spec.tsx +++ b/pro/src/components/IndividualOffer/Status/__specs__/StatusToggleButton.spec.tsx @@ -1,7 +1,6 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { addDays } from 'date-fns' -import React from 'react' import { api } from 'apiClient/api' import { OfferStatus } from 'apiClient/v1' diff --git a/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step1SVG.tsx b/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step1SVG.tsx index 8b9fa1c66e0..8e5f06dc349 100644 --- a/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step1SVG.tsx +++ b/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step1SVG.tsx @@ -1,5 +1,3 @@ -import React from 'react' - type Step1SVGProps = { className?: string } diff --git a/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step2SVG.tsx b/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step2SVG.tsx index 8eaf63c214c..043005556a8 100644 --- a/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step2SVG.tsx +++ b/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step2SVG.tsx @@ -1,5 +1,3 @@ -import React from 'react' - type Step2SVGProps = { className?: string } diff --git a/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step3SVG.tsx b/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step3SVG.tsx index 8da6cefa4b1..7ddc9a979be 100644 --- a/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step3SVG.tsx +++ b/pro/src/components/IndividualOffer/StocksEventCreation/HelpSection/Step3SVG.tsx @@ -1,5 +1,3 @@ -import React from 'react' - type Step3SVGProps = { className?: string } diff --git a/pro/src/components/IndividualOffer/StocksEventCreation/__specs__/StocksEventCreation.spec.tsx b/pro/src/components/IndividualOffer/StocksEventCreation/__specs__/StocksEventCreation.spec.tsx index 4db00e54ab0..44e6bcd5c9a 100644 --- a/pro/src/components/IndividualOffer/StocksEventCreation/__specs__/StocksEventCreation.spec.tsx +++ b/pro/src/components/IndividualOffer/StocksEventCreation/__specs__/StocksEventCreation.spec.tsx @@ -1,7 +1,6 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { addDays, format } from 'date-fns' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/components/IndividualOffer/StocksEventCreation/form/onSubmit.ts b/pro/src/components/IndividualOffer/StocksEventCreation/form/onSubmit.ts index 00c82e63cea..d586b253659 100644 --- a/pro/src/components/IndividualOffer/StocksEventCreation/form/onSubmit.ts +++ b/pro/src/components/IndividualOffer/StocksEventCreation/form/onSubmit.ts @@ -2,7 +2,6 @@ import { format, sub } from 'date-fns' import { api } from 'apiClient/api' import { getHumanReadableApiError } from 'apiClient/helpers' -import { ApiError } from 'apiClient/v1' import { useNotification } from 'commons/hooks/useNotification' import { FORMAT_ISO_DATE_ONLY, diff --git a/pro/src/components/IndividualOffer/StocksEventEdition/EventCancellationBanner.tsx b/pro/src/components/IndividualOffer/StocksEventEdition/EventCancellationBanner.tsx index 8e079a4ac09..2e1dcdaf3e8 100644 --- a/pro/src/components/IndividualOffer/StocksEventEdition/EventCancellationBanner.tsx +++ b/pro/src/components/IndividualOffer/StocksEventEdition/EventCancellationBanner.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { GetIndividualOfferResponseModel } from 'apiClient/v1' import { isOfferDisabled } from 'commons/core/Offers/utils/isOfferDisabled' import { FormLayoutDescription } from 'components/FormLayout/FormLayoutDescription' diff --git a/pro/src/components/IndividualOffer/StocksSummaryScreen/StocksSummaryScreen.tsx b/pro/src/components/IndividualOffer/StocksSummaryScreen/StocksSummaryScreen.tsx index 8127e662a23..50534d7f130 100644 --- a/pro/src/components/IndividualOffer/StocksSummaryScreen/StocksSummaryScreen.tsx +++ b/pro/src/components/IndividualOffer/StocksSummaryScreen/StocksSummaryScreen.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { api } from 'apiClient/api' import { GetOfferStockResponseModel } from 'apiClient/v1' diff --git a/pro/src/components/IndividualOffer/StocksThing/ActivationCodeFormDialog/ActivationCodesUploadInformationDescription.tsx b/pro/src/components/IndividualOffer/StocksThing/ActivationCodeFormDialog/ActivationCodesUploadInformationDescription.tsx index e8447dfe4d6..4ac993dede2 100644 --- a/pro/src/components/IndividualOffer/StocksThing/ActivationCodeFormDialog/ActivationCodesUploadInformationDescription.tsx +++ b/pro/src/components/IndividualOffer/StocksThing/ActivationCodeFormDialog/ActivationCodesUploadInformationDescription.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import styles from './ActivationCodeFormDialog.module.scss' export const ActivationCodesUploadInformationDescription = () => { diff --git a/pro/src/components/IndividualOffer/StocksThing/ActivationCodeFormDialog/AddActivationCodeConfirmationForm.tsx b/pro/src/components/IndividualOffer/StocksThing/ActivationCodeFormDialog/AddActivationCodeConfirmationForm.tsx index 72b838055e4..576454f2684 100644 --- a/pro/src/components/IndividualOffer/StocksThing/ActivationCodeFormDialog/AddActivationCodeConfirmationForm.tsx +++ b/pro/src/components/IndividualOffer/StocksThing/ActivationCodeFormDialog/AddActivationCodeConfirmationForm.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { Button } from 'ui-kit/Button/Button' import { ButtonVariant } from 'ui-kit/Button/types' import { DatePicker } from 'ui-kit/form/DatePicker/DatePicker' diff --git a/pro/src/components/IndividualOffer/SummaryScreen/PriceCategoriesSection/PriceCategoriesSection.tsx b/pro/src/components/IndividualOffer/SummaryScreen/PriceCategoriesSection/PriceCategoriesSection.tsx index d4ce18553e4..7f02bfafa07 100644 --- a/pro/src/components/IndividualOffer/SummaryScreen/PriceCategoriesSection/PriceCategoriesSection.tsx +++ b/pro/src/components/IndividualOffer/SummaryScreen/PriceCategoriesSection/PriceCategoriesSection.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useLocation } from 'react-router-dom' import { GetIndividualOfferResponseModel } from 'apiClient/v1' diff --git a/pro/src/components/IndividualOffer/SummaryScreen/PriceCategoriesSection/__specs__/PriceCategoriesSection.spec.tsx b/pro/src/components/IndividualOffer/SummaryScreen/PriceCategoriesSection/__specs__/PriceCategoriesSection.spec.tsx index 9fa7dfd8da8..672f2e80c6c 100644 --- a/pro/src/components/IndividualOffer/SummaryScreen/PriceCategoriesSection/__specs__/PriceCategoriesSection.spec.tsx +++ b/pro/src/components/IndividualOffer/SummaryScreen/PriceCategoriesSection/__specs__/PriceCategoriesSection.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { getIndividualOfferFactory } from 'commons/utils/factories/individualApiFactories' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/components/IndividualOffer/SummaryScreen/StockSection/RecurrenceSection/RecurrenceSection.tsx b/pro/src/components/IndividualOffer/SummaryScreen/StockSection/RecurrenceSection/RecurrenceSection.tsx index baaf9ac4cf9..0ee5001bc68 100644 --- a/pro/src/components/IndividualOffer/SummaryScreen/StockSection/RecurrenceSection/RecurrenceSection.tsx +++ b/pro/src/components/IndividualOffer/SummaryScreen/StockSection/RecurrenceSection/RecurrenceSection.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { StockStatsResponseModel } from 'apiClient/v1' import { FORMAT_DD_MM_YYYY } from 'commons/utils/date' import { pluralizeString } from 'commons/utils/pluralize' diff --git a/pro/src/components/IndividualOffer/SummaryScreen/StockSection/RecurrenceSection/__specs__/RecurrenceSection.spec.tsx b/pro/src/components/IndividualOffer/SummaryScreen/StockSection/RecurrenceSection/__specs__/RecurrenceSection.spec.tsx index 416cbbb87a6..d4a493b9dc2 100644 --- a/pro/src/components/IndividualOffer/SummaryScreen/StockSection/RecurrenceSection/__specs__/RecurrenceSection.spec.tsx +++ b/pro/src/components/IndividualOffer/SummaryScreen/StockSection/RecurrenceSection/__specs__/RecurrenceSection.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { StockStatsResponseModel } from 'apiClient/v1' diff --git a/pro/src/components/IndividualOffer/SummaryScreen/StockSection/StockThingSection/StockThingSection.tsx b/pro/src/components/IndividualOffer/SummaryScreen/StockSection/StockThingSection/StockThingSection.tsx index b40975c5fdd..5ce92960cb8 100644 --- a/pro/src/components/IndividualOffer/SummaryScreen/StockSection/StockThingSection/StockThingSection.tsx +++ b/pro/src/components/IndividualOffer/SummaryScreen/StockSection/StockThingSection/StockThingSection.tsx @@ -1,5 +1,4 @@ import { format } from 'date-fns-tz' -import React from 'react' import { GetOfferStockResponseModel } from 'apiClient/v1' import { FORMAT_DD_MM_YYYY, toDateStrippedOfTimezone } from 'commons/utils/date' diff --git a/pro/src/components/IndividualOffer/SummaryScreen/StockSection/__specs__/StockSection.spec.tsx b/pro/src/components/IndividualOffer/SummaryScreen/StockSection/__specs__/StockSection.spec.tsx index ed08fe9a3d8..732088c0938 100644 --- a/pro/src/components/IndividualOffer/SummaryScreen/StockSection/__specs__/StockSection.spec.tsx +++ b/pro/src/components/IndividualOffer/SummaryScreen/StockSection/__specs__/StockSection.spec.tsx @@ -4,7 +4,6 @@ import { waitForElementToBeRemoved, } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { generatePath, Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/components/IndividualOffer/SummaryScreen/SummaryScreen.tsx b/pro/src/components/IndividualOffer/SummaryScreen/SummaryScreen.tsx index d7d7f81a61e..3595537c64c 100644 --- a/pro/src/components/IndividualOffer/SummaryScreen/SummaryScreen.tsx +++ b/pro/src/components/IndividualOffer/SummaryScreen/SummaryScreen.tsx @@ -1,5 +1,5 @@ import { Form, FormikProvider, useFormik } from 'formik' -import React, { useState } from 'react' +import { useState } from 'react' import { useNavigate, useLocation } from 'react-router-dom' import { useSWRConfig } from 'swr' diff --git a/pro/src/components/IndividualOffer/SynchronisedProviderInfos/__specs__/SynchronizedProviderInformation.spec.tsx b/pro/src/components/IndividualOffer/SynchronisedProviderInfos/__specs__/SynchronizedProviderInformation.spec.tsx index 29ea4af4aa9..c28ac15c9f8 100644 --- a/pro/src/components/IndividualOffer/SynchronisedProviderInfos/__specs__/SynchronizedProviderInformation.spec.tsx +++ b/pro/src/components/IndividualOffer/SynchronisedProviderInfos/__specs__/SynchronizedProviderInformation.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { SynchronizedProviderInformation, diff --git a/pro/src/components/IndividualOffer/UsefulInformationScreen/UsefulInformationForm/components/OfferRefundWarning.tsx b/pro/src/components/IndividualOffer/UsefulInformationScreen/UsefulInformationForm/components/OfferRefundWarning.tsx index 7e483914c97..8f5b8703b97 100644 --- a/pro/src/components/IndividualOffer/UsefulInformationScreen/UsefulInformationForm/components/OfferRefundWarning.tsx +++ b/pro/src/components/IndividualOffer/UsefulInformationScreen/UsefulInformationForm/components/OfferRefundWarning.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { Callout } from 'ui-kit/Callout/Callout' import { CalloutVariant } from 'ui-kit/Callout/types' diff --git a/pro/src/components/IndividualOffer/UsefulInformationScreen/UsefulInformationForm/components/WithdrawalReminder.tsx b/pro/src/components/IndividualOffer/UsefulInformationScreen/UsefulInformationForm/components/WithdrawalReminder.tsx index 84663e1f581..8ecbcc89459 100644 --- a/pro/src/components/IndividualOffer/UsefulInformationScreen/UsefulInformationForm/components/WithdrawalReminder.tsx +++ b/pro/src/components/IndividualOffer/UsefulInformationScreen/UsefulInformationForm/components/WithdrawalReminder.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { CGU_URL } from 'commons/utils/config' import { Callout } from 'ui-kit/Callout/Callout' diff --git a/pro/src/components/IndividualOfferNavigation/IndividualOfferNavigation.tsx b/pro/src/components/IndividualOfferNavigation/IndividualOfferNavigation.tsx index be24c07642a..560287c8fd1 100644 --- a/pro/src/components/IndividualOfferNavigation/IndividualOfferNavigation.tsx +++ b/pro/src/components/IndividualOfferNavigation/IndividualOfferNavigation.tsx @@ -1,4 +1,4 @@ -import React, { FC } from 'react' +import { FC } from 'react' import { generatePath, useLocation } from 'react-router-dom' import { useIndividualOfferContext } from 'commons/context/IndividualOfferContext/IndividualOfferContext' diff --git a/pro/src/components/IndividualOfferNavigation/__specs__/IndividualOfferNavigation.spec.tsx b/pro/src/components/IndividualOfferNavigation/__specs__/IndividualOfferNavigation.spec.tsx index c8365cb2bd7..e5f39e6b718 100644 --- a/pro/src/components/IndividualOfferNavigation/__specs__/IndividualOfferNavigation.spec.tsx +++ b/pro/src/components/IndividualOfferNavigation/__specs__/IndividualOfferNavigation.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { IndividualOfferContext } from 'commons/context/IndividualOfferContext/IndividualOfferContext' import { OFFER_WIZARD_MODE } from 'commons/core/Offers/constants' diff --git a/pro/src/components/MultiDownloadButtonsModal/MultiDownloadButtonsModal.tsx b/pro/src/components/MultiDownloadButtonsModal/MultiDownloadButtonsModal.tsx index 4c911b77c5c..699bae25f95 100644 --- a/pro/src/components/MultiDownloadButtonsModal/MultiDownloadButtonsModal.tsx +++ b/pro/src/components/MultiDownloadButtonsModal/MultiDownloadButtonsModal.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { useRef, useState } from 'react' +import { useRef, useState } from 'react' import { useAnalytics } from 'app/App/analytics/firebase' import { CollectivePreFiltersParams, PreFiltersParams } from 'commons/core/Bookings/types' diff --git a/pro/src/components/Newsletter/Newsletter.tsx b/pro/src/components/Newsletter/Newsletter.tsx index 3751b56758c..1cd66745014 100644 --- a/pro/src/components/Newsletter/Newsletter.tsx +++ b/pro/src/components/Newsletter/Newsletter.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import fullLinkIcon from 'icons/full-link.svg' import { ButtonLink } from 'ui-kit/Button/ButtonLink' import { ButtonVariant } from 'ui-kit/Button/types' diff --git a/pro/src/components/Newsletter/NewsletterSVG.tsx b/pro/src/components/Newsletter/NewsletterSVG.tsx index 1b7b4a09819..5690b390dfd 100644 --- a/pro/src/components/Newsletter/NewsletterSVG.tsx +++ b/pro/src/components/Newsletter/NewsletterSVG.tsx @@ -1,5 +1,3 @@ -import React from 'react' - type NewsletterSVGProps = { className?: string } diff --git a/pro/src/components/NoData/NoData.tsx b/pro/src/components/NoData/NoData.tsx index 1a887dd5317..ef25d6cc80b 100644 --- a/pro/src/components/NoData/NoData.tsx +++ b/pro/src/components/NoData/NoData.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import strokeBookingHold from 'icons/stroke-booking-hold.svg' import strokeNoBookingIcon from 'icons/stroke-no-booking.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/components/NoResults/NoResults.tsx b/pro/src/components/NoResults/NoResults.tsx index 3dfe6d87111..d47c6a0f9aa 100644 --- a/pro/src/components/NoResults/NoResults.tsx +++ b/pro/src/components/NoResults/NoResults.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import fullRefresh from 'icons/full-refresh.svg' import strokeSearchIcon from 'icons/stroke-search.svg' import { Button } from 'ui-kit/Button/Button' diff --git a/pro/src/components/Notification/Notification.tsx b/pro/src/components/Notification/Notification.tsx index 039f1569160..ec532966108 100644 --- a/pro/src/components/Notification/Notification.tsx +++ b/pro/src/components/Notification/Notification.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { useSelector } from 'react-redux' import { NOTIFICATION_TRANSITION_DURATION } from 'commons/core/Notification/constants' diff --git a/pro/src/components/Notification/__specs__/Notification.spec.tsx b/pro/src/components/Notification/__specs__/Notification.spec.tsx index d593ed40c42..ed329d6b8ab 100644 --- a/pro/src/components/Notification/__specs__/Notification.spec.tsx +++ b/pro/src/components/Notification/__specs__/Notification.spec.tsx @@ -1,5 +1,4 @@ import { screen, waitFor } from '@testing-library/react' -import React from 'react' import { NotificationTypeEnum } from 'commons/hooks/useNotification' import { Notification as NotificationType } from 'commons/store/notifications/reducer' diff --git a/pro/src/components/OfferAppPreview/OfferAppPreview.tsx b/pro/src/components/OfferAppPreview/OfferAppPreview.tsx index 9518f1be537..c3104269002 100644 --- a/pro/src/components/OfferAppPreview/OfferAppPreview.tsx +++ b/pro/src/components/OfferAppPreview/OfferAppPreview.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { GetIndividualOfferWithAddressResponseModel } from 'apiClient/v1' import { useActiveFeature } from 'commons/hooks/useActiveFeature' import { getIndividualOfferImage } from 'components/IndividualOffer/utils/getIndividualOfferImage' diff --git a/pro/src/components/OfferAppPreview/OptionsIcons/OptionsIcons.tsx b/pro/src/components/OfferAppPreview/OptionsIcons/OptionsIcons.tsx index fa4ba9c9864..ff84bd92b39 100644 --- a/pro/src/components/OfferAppPreview/OptionsIcons/OptionsIcons.tsx +++ b/pro/src/components/OfferAppPreview/OptionsIcons/OptionsIcons.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import strokeDuoIcon from 'icons/stroke-duo.svg' import strokePassIcon from 'icons/stroke-pass.svg' diff --git a/pro/src/components/OffererStatsNoResult/OffererStatsNoResult.tsx b/pro/src/components/OffererStatsNoResult/OffererStatsNoResult.tsx index 95f727facd5..ada53ad1849 100644 --- a/pro/src/components/OffererStatsNoResult/OffererStatsNoResult.tsx +++ b/pro/src/components/OffererStatsNoResult/OffererStatsNoResult.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import strokePieIcon from 'icons/stroke-pie.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/components/OffersTable/Cells/OfferNameCell/OfferNameCell.tsx b/pro/src/components/OffersTable/Cells/OfferNameCell/OfferNameCell.tsx index a72f76ef033..09cb10643ce 100644 --- a/pro/src/components/OffersTable/Cells/OfferNameCell/OfferNameCell.tsx +++ b/pro/src/components/OffersTable/Cells/OfferNameCell/OfferNameCell.tsx @@ -7,7 +7,6 @@ import { } from 'apiClient/v1' import { isOfferEducational } from 'commons/core/OfferEducational/types' import { - OFFER_STATUS_PENDING, OFFER_STATUS_SOLD_OUT, } from 'commons/core/Offers/constants' import { useActiveFeature } from 'commons/hooks/useActiveFeature' @@ -22,8 +21,6 @@ import { Tag, TagVariant } from 'ui-kit/Tag/Tag' import { Thumb } from 'ui-kit/Thumb/Thumb' import { useTooltipProps } from 'ui-kit/Tooltip/useTooltipProps' -import { getDate, getRemainingTime, shouldDisplayWarning } from './utils' - export interface OfferNameCellProps { offer: CollectiveOfferResponseModel | ListOffersOfferResponseModel offerLink: string diff --git a/pro/src/components/OffersTable/Cells/OfferNameCell/__specs__/OfferNameCell.spec.tsx b/pro/src/components/OffersTable/Cells/OfferNameCell/__specs__/OfferNameCell.spec.tsx index 2b8db2942b7..4146484cec0 100644 --- a/pro/src/components/OffersTable/Cells/OfferNameCell/__specs__/OfferNameCell.spec.tsx +++ b/pro/src/components/OffersTable/Cells/OfferNameCell/__specs__/OfferNameCell.spec.tsx @@ -156,19 +156,6 @@ describe('OfferNameCell', () => { }) describe('departmentCode', () => { - // Creates an COLLECTIVE offer - const collectiveOffer = collectiveOfferFactory({ - stocks: [ - listOffersStockFactory({ - beginningDatetime: '2024-10-01T10:00:00.000', // this datetime is UTC - }), - ], - name: 'Collective offer', - venue: listOffersVenueFactory({ - departementCode: '75', // Paris departement code (UTC+2 EDT) - }), - }) - // Creates an INDIVIDUAL offer const individualOffer = listOffersOfferFactory({ stocks: [ diff --git a/pro/src/components/RedirectDialog/RedirectDialog.tsx b/pro/src/components/RedirectDialog/RedirectDialog.tsx index 759e0ddb1bf..a5ece1c3a62 100644 --- a/pro/src/components/RedirectDialog/RedirectDialog.tsx +++ b/pro/src/components/RedirectDialog/RedirectDialog.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import fullLinkIcon from 'icons/full-link.svg' import fullNextIcon from 'icons/full-next.svg' import { Button } from 'ui-kit/Button/Button' diff --git a/pro/src/components/ReimbursementsTabs/ReimbursementsTabs.tsx b/pro/src/components/ReimbursementsTabs/ReimbursementsTabs.tsx index c1ae993a781..7b6593f00a3 100644 --- a/pro/src/components/ReimbursementsTabs/ReimbursementsTabs.tsx +++ b/pro/src/components/ReimbursementsTabs/ReimbursementsTabs.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { GetOffererResponseModel } from 'apiClient/v1' import { useActiveFeature } from 'commons/hooks/useActiveFeature' import { useActiveStep } from 'commons/hooks/useActiveStep' diff --git a/pro/src/components/RouteLeavingGuard/RouteLeavingGuard.tsx b/pro/src/components/RouteLeavingGuard/RouteLeavingGuard.tsx index 2c6933d3c42..059345ff040 100644 --- a/pro/src/components/RouteLeavingGuard/RouteLeavingGuard.tsx +++ b/pro/src/components/RouteLeavingGuard/RouteLeavingGuard.tsx @@ -1,4 +1,4 @@ -import React, { ReactNode } from 'react' +import { ReactNode } from 'react' import { useBlocker } from 'react-router-dom' import type { Location } from 'react-router-dom' diff --git a/pro/src/components/RouteLeavingGuard/__specs__/RouteLeavingGuard.spec.tsx b/pro/src/components/RouteLeavingGuard/__specs__/RouteLeavingGuard.spec.tsx index 1d452df519c..33a26ae8c99 100644 --- a/pro/src/components/RouteLeavingGuard/__specs__/RouteLeavingGuard.spec.tsx +++ b/pro/src/components/RouteLeavingGuard/__specs__/RouteLeavingGuard.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Link, Route, Routes } from 'react-router-dom' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/components/RouteLeavingGuardIndividualOffer/RouteLeavingGuardIndividualOffer.tsx b/pro/src/components/RouteLeavingGuardIndividualOffer/RouteLeavingGuardIndividualOffer.tsx index af515f58656..f31eaef9fc9 100644 --- a/pro/src/components/RouteLeavingGuardIndividualOffer/RouteLeavingGuardIndividualOffer.tsx +++ b/pro/src/components/RouteLeavingGuardIndividualOffer/RouteLeavingGuardIndividualOffer.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { RouteLeavingGuard, BlockerFunction, diff --git a/pro/src/components/SignupJourneyForm/ActionBar/ActionBar.tsx b/pro/src/components/SignupJourneyForm/ActionBar/ActionBar.tsx index 1e67433a9fd..eb290e248c3 100644 --- a/pro/src/components/SignupJourneyForm/ActionBar/ActionBar.tsx +++ b/pro/src/components/SignupJourneyForm/ActionBar/ActionBar.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useLocation } from 'react-router-dom' import { useAnalytics } from 'app/App/analytics/firebase' diff --git a/pro/src/components/SignupJourneyForm/ActionBar/__specs__/ActionBar.trackers.spec.tsx b/pro/src/components/SignupJourneyForm/ActionBar/__specs__/ActionBar.trackers.spec.tsx index cc6c3e21fcd..bce1cc0dca8 100644 --- a/pro/src/components/SignupJourneyForm/ActionBar/__specs__/ActionBar.trackers.spec.tsx +++ b/pro/src/components/SignupJourneyForm/ActionBar/__specs__/ActionBar.trackers.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import * as useAnalytics from 'app/App/analytics/firebase' diff --git a/pro/src/components/SignupJourneyForm/Activity/Activity.tsx b/pro/src/components/SignupJourneyForm/Activity/Activity.tsx index 1e00fdbb3ff..fd1ae539415 100644 --- a/pro/src/components/SignupJourneyForm/Activity/Activity.tsx +++ b/pro/src/components/SignupJourneyForm/Activity/Activity.tsx @@ -1,5 +1,4 @@ import { FormikProvider, useFormik } from 'formik' -import React from 'react' import { useNavigate } from 'react-router-dom' import useSWR from 'swr' diff --git a/pro/src/components/SignupJourneyForm/Activity/ActivityForm.tsx b/pro/src/components/SignupJourneyForm/Activity/ActivityForm.tsx index 4af570bcb6b..c27d22f6672 100644 --- a/pro/src/components/SignupJourneyForm/Activity/ActivityForm.tsx +++ b/pro/src/components/SignupJourneyForm/Activity/ActivityForm.tsx @@ -1,6 +1,5 @@ import cn from 'classnames' import { FieldArray, useFormikContext } from 'formik' -import React from 'react' import { VenueTypeResponseModel } from 'apiClient/v1' import { FormLayout } from 'components/FormLayout/FormLayout' diff --git a/pro/src/components/SignupJourneyForm/Activity/__specs__/ActivityForm.spec.tsx b/pro/src/components/SignupJourneyForm/Activity/__specs__/ActivityForm.spec.tsx index 85d9509fe86..eb9e40c0a7f 100644 --- a/pro/src/components/SignupJourneyForm/Activity/__specs__/ActivityForm.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Activity/__specs__/ActivityForm.spec.tsx @@ -1,7 +1,6 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Form, Formik } from 'formik' -import React from 'react' import { api } from 'apiClient/api' import { VenueTypeResponseModel } from 'apiClient/v1' diff --git a/pro/src/components/SignupJourneyForm/Activity/__specs__/ActivityScreen.spec.tsx b/pro/src/components/SignupJourneyForm/Activity/__specs__/ActivityScreen.spec.tsx index 07cd0be229f..91ad1e645b9 100644 --- a/pro/src/components/SignupJourneyForm/Activity/__specs__/ActivityScreen.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Activity/__specs__/ActivityScreen.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/components/SignupJourneyForm/Authentication/OffererAuthentication.tsx b/pro/src/components/SignupJourneyForm/Authentication/OffererAuthentication.tsx index c81d85906e8..955d36ccaa2 100644 --- a/pro/src/components/SignupJourneyForm/Authentication/OffererAuthentication.tsx +++ b/pro/src/components/SignupJourneyForm/Authentication/OffererAuthentication.tsx @@ -1,5 +1,5 @@ import { FormikProvider, useFormik } from 'formik' -import React, { useEffect } from 'react' +import { useEffect } from 'react' import { useNavigate } from 'react-router-dom' import { useSignupJourneyContext } from 'commons/context/SignupJourneyContext/SignupJourneyContext' diff --git a/pro/src/components/SignupJourneyForm/Authentication/OffererAuthenticationForm.tsx b/pro/src/components/SignupJourneyForm/Authentication/OffererAuthenticationForm.tsx index 8ef68cec839..5a8380ef518 100644 --- a/pro/src/components/SignupJourneyForm/Authentication/OffererAuthenticationForm.tsx +++ b/pro/src/components/SignupJourneyForm/Authentication/OffererAuthenticationForm.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { AddressSelect } from 'components/Address/Address' import { Address } from 'components/Address/types' import { FormLayout } from 'components/FormLayout/FormLayout' diff --git a/pro/src/components/SignupJourneyForm/Authentication/__specs__/OffererAuthenticationForm.spec.tsx b/pro/src/components/SignupJourneyForm/Authentication/__specs__/OffererAuthenticationForm.spec.tsx index bd86e99123a..3e76eaf8f9d 100644 --- a/pro/src/components/SignupJourneyForm/Authentication/__specs__/OffererAuthenticationForm.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Authentication/__specs__/OffererAuthenticationForm.spec.tsx @@ -1,7 +1,6 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Form, Formik } from 'formik' -import React from 'react' import createFetchMock from 'vitest-fetch-mock' import { apiAdresse } from 'apiClient/adresse/apiAdresse' diff --git a/pro/src/components/SignupJourneyForm/Authentication/__specs__/OffererAuthenticationScreen.spec.tsx b/pro/src/components/SignupJourneyForm/Authentication/__specs__/OffererAuthenticationScreen.spec.tsx index 1872ab59291..de47e40d83e 100644 --- a/pro/src/components/SignupJourneyForm/Authentication/__specs__/OffererAuthenticationScreen.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Authentication/__specs__/OffererAuthenticationScreen.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import createFetchMock from 'vitest-fetch-mock' diff --git a/pro/src/components/SignupJourneyForm/ConfirmedAttachment/ConfirmedAttachment.tsx b/pro/src/components/SignupJourneyForm/ConfirmedAttachment/ConfirmedAttachment.tsx index fc2a9bbbee6..ba7cbc9f036 100644 --- a/pro/src/components/SignupJourneyForm/ConfirmedAttachment/ConfirmedAttachment.tsx +++ b/pro/src/components/SignupJourneyForm/ConfirmedAttachment/ConfirmedAttachment.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useAnalytics } from 'app/App/analytics/firebase' import { useSignupJourneyContext } from 'commons/context/SignupJourneyContext/SignupJourneyContext' diff --git a/pro/src/components/SignupJourneyForm/ConfirmedAttachment/__specs__/ConfirmedAttachment.spec.tsx b/pro/src/components/SignupJourneyForm/ConfirmedAttachment/__specs__/ConfirmedAttachment.spec.tsx index 921efaec182..67fd9fc5fb0 100644 --- a/pro/src/components/SignupJourneyForm/ConfirmedAttachment/__specs__/ConfirmedAttachment.spec.tsx +++ b/pro/src/components/SignupJourneyForm/ConfirmedAttachment/__specs__/ConfirmedAttachment.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { sharedCurrentUserFactory } from 'commons/utils/factories/storeFactories' diff --git a/pro/src/components/SignupJourneyForm/ConfirmedAttachment/__specs__/ConfirmedAttachment.trackers.spec.tsx b/pro/src/components/SignupJourneyForm/ConfirmedAttachment/__specs__/ConfirmedAttachment.trackers.spec.tsx index fdd91348292..4143241d9ff 100644 --- a/pro/src/components/SignupJourneyForm/ConfirmedAttachment/__specs__/ConfirmedAttachment.trackers.spec.tsx +++ b/pro/src/components/SignupJourneyForm/ConfirmedAttachment/__specs__/ConfirmedAttachment.trackers.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as useAnalytics from 'app/App/analytics/firebase' import { diff --git a/pro/src/components/SignupJourneyForm/Offerer/BannerInvisibleSiren/BannerInvisibleSiren.tsx b/pro/src/components/SignupJourneyForm/Offerer/BannerInvisibleSiren/BannerInvisibleSiren.tsx index cf3836ee6ee..1c7fa2b3a54 100644 --- a/pro/src/components/SignupJourneyForm/Offerer/BannerInvisibleSiren/BannerInvisibleSiren.tsx +++ b/pro/src/components/SignupJourneyForm/Offerer/BannerInvisibleSiren/BannerInvisibleSiren.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Callout } from 'ui-kit/Callout/Callout' import { CalloutVariant } from 'ui-kit/Callout/types' diff --git a/pro/src/components/SignupJourneyForm/Offerer/Offerer.tsx b/pro/src/components/SignupJourneyForm/Offerer/Offerer.tsx index 6b356f82783..47a40288e08 100644 --- a/pro/src/components/SignupJourneyForm/Offerer/Offerer.tsx +++ b/pro/src/components/SignupJourneyForm/Offerer/Offerer.tsx @@ -1,5 +1,5 @@ import { FormikProvider, useFormik } from 'formik' -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/components/SignupJourneyForm/Offerer/OffererForm.tsx b/pro/src/components/SignupJourneyForm/Offerer/OffererForm.tsx index 8e6e730db69..c9df6810d9e 100644 --- a/pro/src/components/SignupJourneyForm/Offerer/OffererForm.tsx +++ b/pro/src/components/SignupJourneyForm/Offerer/OffererForm.tsx @@ -1,5 +1,4 @@ import { useFormikContext } from 'formik' -import React from 'react' import { humanizeSiret, unhumanizeSiret } from 'commons/core/Venue/utils' import { FormLayout } from 'components/FormLayout/FormLayout' diff --git a/pro/src/components/SignupJourneyForm/Offerer/__specs__/Offerer.spec.tsx b/pro/src/components/SignupJourneyForm/Offerer/__specs__/Offerer.spec.tsx index 4e9bd63f6fe..745492af6a0 100644 --- a/pro/src/components/SignupJourneyForm/Offerer/__specs__/Offerer.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Offerer/__specs__/Offerer.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import createFetchMock from 'vitest-fetch-mock' diff --git a/pro/src/components/SignupJourneyForm/Offerer/__specs__/OffererForm.spec.tsx b/pro/src/components/SignupJourneyForm/Offerer/__specs__/OffererForm.spec.tsx index f934f23269b..a9742c15daf 100644 --- a/pro/src/components/SignupJourneyForm/Offerer/__specs__/OffererForm.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Offerer/__specs__/OffererForm.spec.tsx @@ -1,7 +1,6 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Form, Formik } from 'formik' -import React from 'react' import createFetchMock from 'vitest-fetch-mock' import { api } from 'apiClient/api' diff --git a/pro/src/components/SignupJourneyForm/Offerers/Offerers.tsx b/pro/src/components/SignupJourneyForm/Offerers/Offerers.tsx index 2fd89314a59..b9c2a72097c 100644 --- a/pro/src/components/SignupJourneyForm/Offerers/Offerers.tsx +++ b/pro/src/components/SignupJourneyForm/Offerers/Offerers.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { useDispatch } from 'react-redux' import { useNavigate } from 'react-router-dom' import useSWR from 'swr' diff --git a/pro/src/components/SignupJourneyForm/Offerers/__specs__/Offerers.spec.tsx b/pro/src/components/SignupJourneyForm/Offerers/__specs__/Offerers.spec.tsx index ed9d628dc26..6703575e4dd 100644 --- a/pro/src/components/SignupJourneyForm/Offerers/__specs__/Offerers.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Offerers/__specs__/Offerers.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { ApiRequestOptions } from 'apiClient/adage/core/ApiRequestOptions' diff --git a/pro/src/components/SignupJourneyForm/Offerers/__specs__/Offerers.trackers.spec.tsx b/pro/src/components/SignupJourneyForm/Offerers/__specs__/Offerers.trackers.spec.tsx index 72e4cdcbc68..1624da4d703 100644 --- a/pro/src/components/SignupJourneyForm/Offerers/__specs__/Offerers.trackers.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Offerers/__specs__/Offerers.trackers.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import * as useAnalytics from 'app/App/analytics/firebase' diff --git a/pro/src/components/SignupJourneyForm/Validation/__specs__/ValidationScreen.spec.tsx b/pro/src/components/SignupJourneyForm/Validation/__specs__/ValidationScreen.spec.tsx index e49e3f09372..7558fb9193e 100644 --- a/pro/src/components/SignupJourneyForm/Validation/__specs__/ValidationScreen.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Validation/__specs__/ValidationScreen.spec.tsx @@ -4,7 +4,6 @@ import { waitForElementToBeRemoved, } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/components/SignupJourneyForm/Welcome/Welcome.tsx b/pro/src/components/SignupJourneyForm/Welcome/Welcome.tsx index dc00ba112a7..c6243f548c5 100644 --- a/pro/src/components/SignupJourneyForm/Welcome/Welcome.tsx +++ b/pro/src/components/SignupJourneyForm/Welcome/Welcome.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { ButtonLink } from 'ui-kit/Button/ButtonLink' import { ButtonVariant } from 'ui-kit/Button/types' diff --git a/pro/src/components/SignupJourneyForm/Welcome/__specs__/Welcome.spec.tsx b/pro/src/components/SignupJourneyForm/Welcome/__specs__/Welcome.spec.tsx index 21bbc9e31d8..681065409dd 100644 --- a/pro/src/components/SignupJourneyForm/Welcome/__specs__/Welcome.spec.tsx +++ b/pro/src/components/SignupJourneyForm/Welcome/__specs__/Welcome.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { sharedCurrentUserFactory } from 'commons/utils/factories/storeFactories' diff --git a/pro/src/components/SignupJourneyFormLayout/SignupJourneyFormLayout.tsx b/pro/src/components/SignupJourneyFormLayout/SignupJourneyFormLayout.tsx index 9e6f4790a3b..020430a88ff 100644 --- a/pro/src/components/SignupJourneyFormLayout/SignupJourneyFormLayout.tsx +++ b/pro/src/components/SignupJourneyFormLayout/SignupJourneyFormLayout.tsx @@ -1,5 +1,4 @@ import classNames from 'classnames' -import React from 'react' import { SignupJourneyStepper } from 'components/SignupJourneyStepper/SignupJourneyStepper' diff --git a/pro/src/components/SignupJourneyStepper/SignupJourneyStepper.tsx b/pro/src/components/SignupJourneyStepper/SignupJourneyStepper.tsx index e9a159a08ac..fc0a5657fa2 100644 --- a/pro/src/components/SignupJourneyStepper/SignupJourneyStepper.tsx +++ b/pro/src/components/SignupJourneyStepper/SignupJourneyStepper.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useLocation } from 'react-router-dom' import { useAnalytics } from 'app/App/analytics/firebase' diff --git a/pro/src/components/SignupJourneyStepper/__specs__/SignupJourneyStepper.spec.tsx b/pro/src/components/SignupJourneyStepper/__specs__/SignupJourneyStepper.spec.tsx index c9c603ad56b..3bf82d0a69c 100644 --- a/pro/src/components/SignupJourneyStepper/__specs__/SignupJourneyStepper.spec.tsx +++ b/pro/src/components/SignupJourneyStepper/__specs__/SignupJourneyStepper.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { Target } from 'apiClient/v1' diff --git a/pro/src/components/SignupJourneyStepper/__specs__/SignupJourneyStepper.trackers.spec.tsx b/pro/src/components/SignupJourneyStepper/__specs__/SignupJourneyStepper.trackers.spec.tsx index 0975a033f2b..88cf5907283 100644 --- a/pro/src/components/SignupJourneyStepper/__specs__/SignupJourneyStepper.trackers.spec.tsx +++ b/pro/src/components/SignupJourneyStepper/__specs__/SignupJourneyStepper.trackers.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { Target } from 'apiClient/v1' diff --git a/pro/src/components/SkipLinks/__specs__/SkipLinks.spec.tsx b/pro/src/components/SkipLinks/__specs__/SkipLinks.spec.tsx index 282e6ec2fb3..40f1345c6fa 100644 --- a/pro/src/components/SkipLinks/__specs__/SkipLinks.spec.tsx +++ b/pro/src/components/SkipLinks/__specs__/SkipLinks.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/components/SoftDeletedOffererWarning/SoftDeletedOffererWarning.tsx b/pro/src/components/SoftDeletedOffererWarning/SoftDeletedOffererWarning.tsx index ce3d3f20453..7e424acab0b 100644 --- a/pro/src/components/SoftDeletedOffererWarning/SoftDeletedOffererWarning.tsx +++ b/pro/src/components/SoftDeletedOffererWarning/SoftDeletedOffererWarning.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { ButtonLink } from 'ui-kit/Button/ButtonLink' import { ButtonVariant } from 'ui-kit/Button/types' diff --git a/pro/src/components/StatusLabel/StatusLabel.tsx b/pro/src/components/StatusLabel/StatusLabel.tsx index 575323d2216..32538fcda90 100644 --- a/pro/src/components/StatusLabel/StatusLabel.tsx +++ b/pro/src/components/StatusLabel/StatusLabel.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { OfferStatus } from 'apiClient/v1' import { useActiveFeature } from 'commons/hooks/useActiveFeature' diff --git a/pro/src/components/Stepper/StepContent.tsx b/pro/src/components/Stepper/StepContent.tsx index c1c118df89c..368abe9aed6 100644 --- a/pro/src/components/Stepper/StepContent.tsx +++ b/pro/src/components/Stepper/StepContent.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Link } from 'react-router-dom' import { Step } from './Stepper' diff --git a/pro/src/components/StocksEventList/FilterResultsRow.tsx b/pro/src/components/StocksEventList/FilterResultsRow.tsx index 6796b4aec39..7e4c4fd3a8d 100644 --- a/pro/src/components/StocksEventList/FilterResultsRow.tsx +++ b/pro/src/components/StocksEventList/FilterResultsRow.tsx @@ -1,4 +1,3 @@ -import React from 'react' import fullRefreshIcon from 'icons/full-refresh.svg' import { Button } from 'ui-kit/Button/Button' diff --git a/pro/src/components/StocksEventList/NoResultsRow.tsx b/pro/src/components/StocksEventList/NoResultsRow.tsx index f3e6e638d2e..60f47e4088c 100644 --- a/pro/src/components/StocksEventList/NoResultsRow.tsx +++ b/pro/src/components/StocksEventList/NoResultsRow.tsx @@ -1,4 +1,3 @@ -import React from 'react' import strokeSearchIcon from 'icons/stroke-search.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/components/StocksEventList/SortArrow.tsx b/pro/src/components/StocksEventList/SortArrow.tsx index a99fd97454c..2edaa9ee9d6 100644 --- a/pro/src/components/StocksEventList/SortArrow.tsx +++ b/pro/src/components/StocksEventList/SortArrow.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { SortingMode } from 'commons/hooks/useColumnSorting' import fullDownIcon from 'icons/full-down.svg' diff --git a/pro/src/components/StocksEventList/__specs__/StocksEventList.spec.tsx b/pro/src/components/StocksEventList/__specs__/StocksEventList.spec.tsx index a957c5f9902..44004b1058a 100644 --- a/pro/src/components/StocksEventList/__specs__/StocksEventList.spec.tsx +++ b/pro/src/components/StocksEventList/__specs__/StocksEventList.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor, within } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { GetOfferStockResponseModel, StocksOrderedBy } from 'apiClient/v1' diff --git a/pro/src/components/SummaryLayout/SummaryLayout.stories.tsx b/pro/src/components/SummaryLayout/SummaryLayout.stories.tsx index 83edd0c0fde..4a4179448fe 100644 --- a/pro/src/components/SummaryLayout/SummaryLayout.stories.tsx +++ b/pro/src/components/SummaryLayout/SummaryLayout.stories.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { withRouter } from 'storybook-addon-remix-react-router' import { SummaryContent } from './SummaryContent' diff --git a/pro/src/components/UserIdentityForm/UserIdentityForm.tsx b/pro/src/components/UserIdentityForm/UserIdentityForm.tsx index 6146188b7b0..2d6bba262d2 100644 --- a/pro/src/components/UserIdentityForm/UserIdentityForm.tsx +++ b/pro/src/components/UserIdentityForm/UserIdentityForm.tsx @@ -1,5 +1,4 @@ import { Form, FormikProvider, useFormik } from 'formik' -import React from 'react' import { useDispatch } from 'react-redux' import { api } from 'apiClient/api' diff --git a/pro/src/components/UserPasswordForm/__specs__/UserPasswordForm.spec.tsx b/pro/src/components/UserPasswordForm/__specs__/UserPasswordForm.spec.tsx index a5dc020ac34..f51c01e293c 100644 --- a/pro/src/components/UserPasswordForm/__specs__/UserPasswordForm.spec.tsx +++ b/pro/src/components/UserPasswordForm/__specs__/UserPasswordForm.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { sharedCurrentUserFactory } from 'commons/utils/factories/storeFactories' diff --git a/pro/src/components/UserPhoneForm/UserPhoneForm.tsx b/pro/src/components/UserPhoneForm/UserPhoneForm.tsx index 7111cf675a0..b6a3db8760c 100644 --- a/pro/src/components/UserPhoneForm/UserPhoneForm.tsx +++ b/pro/src/components/UserPhoneForm/UserPhoneForm.tsx @@ -1,5 +1,4 @@ import { Form, FormikProvider, useFormik } from 'formik' -import React from 'react' import { useDispatch } from 'react-redux' import { api } from 'apiClient/api' diff --git a/pro/src/components/UserPhoneForm/__specs__/UserPhoneForm.spec.tsx b/pro/src/components/UserPhoneForm/__specs__/UserPhoneForm.spec.tsx index a150d8b6dbb..81da4737348 100644 --- a/pro/src/components/UserPhoneForm/__specs__/UserPhoneForm.spec.tsx +++ b/pro/src/components/UserPhoneForm/__specs__/UserPhoneForm.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { sharedCurrentUserFactory } from 'commons/utils/factories/storeFactories' diff --git a/pro/src/components/UserReview/__specs__/UserReview.spec.tsx b/pro/src/components/UserReview/__specs__/UserReview.spec.tsx index 59d15d3f946..5e2e3c88c68 100644 --- a/pro/src/components/UserReview/__specs__/UserReview.spec.tsx +++ b/pro/src/components/UserReview/__specs__/UserReview.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/Accessibility/__specs__/Accessibility.spec.tsx b/pro/src/pages/Accessibility/__specs__/Accessibility.spec.tsx index b647a91134f..fda904b593d 100644 --- a/pro/src/pages/Accessibility/__specs__/Accessibility.spec.tsx +++ b/pro/src/pages/Accessibility/__specs__/Accessibility.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/Accessibility/__specs__/AccessibilityLayout.spec.tsx b/pro/src/pages/Accessibility/__specs__/AccessibilityLayout.spec.tsx index 74c1a6344a6..64f62d079f5 100644 --- a/pro/src/pages/Accessibility/__specs__/AccessibilityLayout.spec.tsx +++ b/pro/src/pages/Accessibility/__specs__/AccessibilityLayout.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { sharedCurrentUserFactory } from 'commons/utils/factories/storeFactories' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/Accessibility/__specs__/Commitment.spec.tsx b/pro/src/pages/Accessibility/__specs__/Commitment.spec.tsx index f75ebfaf45c..f35b87384bb 100644 --- a/pro/src/pages/Accessibility/__specs__/Commitment.spec.tsx +++ b/pro/src/pages/Accessibility/__specs__/Commitment.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/Accessibility/__specs__/Declaration.spec.tsx b/pro/src/pages/Accessibility/__specs__/Declaration.spec.tsx index c3ef8814e6c..fd9e4c6e999 100644 --- a/pro/src/pages/Accessibility/__specs__/Declaration.spec.tsx +++ b/pro/src/pages/Accessibility/__specs__/Declaration.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/AdageIframe/app/components/DiffuseHelp/DiffuseHelp.tsx b/pro/src/pages/AdageIframe/app/components/DiffuseHelp/DiffuseHelp.tsx index a314802513b..b5333620b6b 100644 --- a/pro/src/pages/AdageIframe/app/components/DiffuseHelp/DiffuseHelp.tsx +++ b/pro/src/pages/AdageIframe/app/components/DiffuseHelp/DiffuseHelp.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { useState } from 'react' +import { useState } from 'react' import { localStorageAvailable } from 'commons/utils/localStorageAvailable' import strokeCloseIcon from 'icons/stroke-close.svg' diff --git a/pro/src/pages/AdageIframe/app/components/DiffuseHelp/__specs__/DiffuseHelp.spec.tsx b/pro/src/pages/AdageIframe/app/components/DiffuseHelp/__specs__/DiffuseHelp.spec.tsx index 75b77a9dd28..d88b117a03e 100644 --- a/pro/src/pages/AdageIframe/app/components/DiffuseHelp/__specs__/DiffuseHelp.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/DiffuseHelp/__specs__/DiffuseHelp.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as localStorageAvailable from 'commons/utils/localStorageAvailable' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/AdageIframe/app/components/OffersForInstitution/__specs__/OffersForMyInstitution.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersForInstitution/__specs__/OffersForMyInstitution.spec.tsx index f0f1aa4f5d9..8e7f302062e 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersForInstitution/__specs__/OffersForMyInstitution.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersForInstitution/__specs__/OffersForMyInstitution.spec.tsx @@ -1,5 +1,4 @@ import { screen, waitForElementToBeRemoved } from '@testing-library/react' -import React from 'react' import { apiAdage } from 'apiClient/api' import { diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Autocomplete/Autocomplete.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Autocomplete/Autocomplete.tsx index 04b8b7ba43c..cdc900c74f2 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Autocomplete/Autocomplete.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Autocomplete/Autocomplete.tsx @@ -7,7 +7,7 @@ import { AutocompleteQuerySuggestionsHit } from '@algolia/autocomplete-plugin-qu import { createLocalStorageRecentSearchesPlugin } from '@algolia/autocomplete-plugin-recent-searches' import algoliasearch from 'algoliasearch/lite' import { FormikContext } from 'formik' -import React, { +import { BaseSyntheticEvent, KeyboardEvent, MouseEvent, diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Autocomplete/__specs__/Autocomplete.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Autocomplete/__specs__/Autocomplete.spec.tsx index 948d4cc81e3..4e8b1045206 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Autocomplete/__specs__/Autocomplete.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Autocomplete/__specs__/Autocomplete.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { defaultAdageUser } from 'commons/utils/factories/adageFactories' import * as localStorageAvailable from 'commons/utils/localStorageAvailable' diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OfferFilters/AdageButtonFilter/__specs__/AdageButtonFilter.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OfferFilters/AdageButtonFilter/__specs__/AdageButtonFilter.spec.tsx index d47064a134e..ef05b7d66a6 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OfferFilters/AdageButtonFilter/__specs__/AdageButtonFilter.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OfferFilters/AdageButtonFilter/__specs__/AdageButtonFilter.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OfferFilters/__specs__/OfferFilters.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OfferFilters/__specs__/OfferFilters.spec.tsx index 6fefcde10bc..2e9fcb82ada 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OfferFilters/__specs__/OfferFilters.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OfferFilters/__specs__/OfferFilters.spec.tsx @@ -1,7 +1,6 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Formik } from 'formik' -import React from 'react' import { EacFormat } from 'apiClient/adage' import { defaultAdageUser } from 'commons/utils/factories/adageFactories' diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/ContactButton/RequestFormDialog/__specs__/RequestFormDialog.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/ContactButton/RequestFormDialog/__specs__/RequestFormDialog.spec.tsx index 42b1aca5f53..49b5f54d135 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/ContactButton/RequestFormDialog/__specs__/RequestFormDialog.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/ContactButton/RequestFormDialog/__specs__/RequestFormDialog.spec.tsx @@ -1,7 +1,6 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { format } from 'date-fns' -import React from 'react' import { AdageFrontRoles } from 'apiClient/adage' import { apiAdage } from 'apiClient/api' diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/ContactButton/__specs__/ContactButton.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/ContactButton/__specs__/ContactButton.spec.tsx index f9532d58b9c..34d6adac5fd 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/ContactButton/__specs__/ContactButton.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/ContactButton/__specs__/ContactButton.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { AdageFrontRoles } from 'apiClient/adage' import { apiAdage } from 'apiClient/api' diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/NoResultsPage/NoResultsPage.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/NoResultsPage/NoResultsPage.tsx index 133c938bf7a..be326ee3d22 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/NoResultsPage/NoResultsPage.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/NoResultsPage/NoResultsPage.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { VenueResponse } from 'apiClient/adage' import fullLinkIcon from 'icons/full-link.svg' diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/NoResultsPage/__specs__/NoResultsPage.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/NoResultsPage/__specs__/NoResultsPage.spec.tsx index 241c23dd743..693420608b2 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/NoResultsPage/__specs__/NoResultsPage.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/NoResultsPage/__specs__/NoResultsPage.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { NoResultsPage } from '../NoResultsPage' diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/OfferDetails/__specs__/OfferVenue.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/OfferDetails/__specs__/OfferVenue.spec.tsx index 42a56dc84bc..8fb94148645 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/OfferDetails/__specs__/OfferVenue.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/OfferDetails/__specs__/OfferVenue.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { CollectiveOfferOfferVenue, OfferAddressType } from 'apiClient/adage' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/OfferSummary/__specs__/OfferSummary.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/OfferSummary/__specs__/OfferSummary.spec.tsx index 03c20735360..fee2d2e4c51 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/OfferSummary/__specs__/OfferSummary.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/Offers/OfferSummary/__specs__/OfferSummary.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { CollectiveOfferTemplateResponseModel } from 'apiClient/adage' import { defaultCollectiveTemplateOffer } from 'commons/utils/factories/adageFactories' diff --git a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OffersSuggestions/__specs__/OffersSuggestions.spec.tsx b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OffersSuggestions/__specs__/OffersSuggestions.spec.tsx index 861e944d964..7dfab34b765 100644 --- a/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OffersSuggestions/__specs__/OffersSuggestions.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/OffersInstantSearch/OffersSearch/OffersSuggestions/__specs__/OffersSuggestions.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import * as instantSearch from 'react-instantsearch' import { Configure } from 'react-instantsearch' diff --git a/pro/src/pages/AdageIframe/app/components/SurveySatisfaction/__specs__/SurveySatisfaction.spec.tsx b/pro/src/pages/AdageIframe/app/components/SurveySatisfaction/__specs__/SurveySatisfaction.spec.tsx index 0041331f640..af798e5d2c4 100644 --- a/pro/src/pages/AdageIframe/app/components/SurveySatisfaction/__specs__/SurveySatisfaction.spec.tsx +++ b/pro/src/pages/AdageIframe/app/components/SurveySatisfaction/__specs__/SurveySatisfaction.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { apiAdage } from 'apiClient/api' import * as useNotification from 'commons/hooks/useNotification' diff --git a/pro/src/pages/Bookings/ChoosePreFiltersMessage/ChoosePreFiltersMessage.tsx b/pro/src/pages/Bookings/ChoosePreFiltersMessage/ChoosePreFiltersMessage.tsx index 6b5e954c9b8..ede4b75dc2e 100644 --- a/pro/src/pages/Bookings/ChoosePreFiltersMessage/ChoosePreFiltersMessage.tsx +++ b/pro/src/pages/Bookings/ChoosePreFiltersMessage/ChoosePreFiltersMessage.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import strokeDesk from 'icons/stroke-desk.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/pages/Bookings/NoBookingsForPreFiltersMessage/NoBookingsForPreFiltersMessage.tsx b/pro/src/pages/Bookings/NoBookingsForPreFiltersMessage/NoBookingsForPreFiltersMessage.tsx index a17865523a8..2a0b4bc85fa 100644 --- a/pro/src/pages/Bookings/NoBookingsForPreFiltersMessage/NoBookingsForPreFiltersMessage.tsx +++ b/pro/src/pages/Bookings/NoBookingsForPreFiltersMessage/NoBookingsForPreFiltersMessage.tsx @@ -1,4 +1,3 @@ -import React from 'react' import fullRefresh from 'icons/full-refresh.svg' import strokeSearchIcon from 'icons/stroke-search.svg' diff --git a/pro/src/pages/Bookings/__specs__/BookingsRecap.spec.tsx b/pro/src/pages/Bookings/__specs__/BookingsRecap.spec.tsx index 77f89163f4f..ad631369c9b 100644 --- a/pro/src/pages/Bookings/__specs__/BookingsRecap.spec.tsx +++ b/pro/src/pages/Bookings/__specs__/BookingsRecap.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { ApiError } from 'apiClient/v2' diff --git a/pro/src/pages/Collaborators/Collaborators.tsx b/pro/src/pages/Collaborators/Collaborators.tsx index 8dbf11fa9f5..65fbcce0849 100644 --- a/pro/src/pages/Collaborators/Collaborators.tsx +++ b/pro/src/pages/Collaborators/Collaborators.tsx @@ -3,7 +3,7 @@ // Component only for display (sub-components already tested) import { Form, FormikProvider, useFormik } from 'formik' -import React, { useCallback, useState } from 'react' +import { useCallback, useState } from 'react' import { useSelector } from 'react-redux' import { useLocation } from 'react-router-dom' import useSWR from 'swr' diff --git a/pro/src/pages/Collaborators/__specs__/Collaborators.spec.tsx b/pro/src/pages/Collaborators/__specs__/Collaborators.spec.tsx index db4d8940383..1833b0170ec 100644 --- a/pro/src/pages/Collaborators/__specs__/Collaborators.spec.tsx +++ b/pro/src/pages/Collaborators/__specs__/Collaborators.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { ApiError, OffererMemberStatus } from 'apiClient/v1' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferCreation/CollectiveOfferCreation.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferCreation/CollectiveOfferCreation.tsx index d6d2b712d2b..b76449202d5 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferCreation/CollectiveOfferCreation.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferCreation/CollectiveOfferCreation.tsx @@ -2,7 +2,7 @@ import { useSelector } from 'react-redux' import { useLocation } from 'react-router-dom' import { Layout } from 'app/App/layout/Layout' -import { isCollectiveOffer, Mode } from 'commons/core/OfferEducational/types' +import { Mode } from 'commons/core/OfferEducational/types' import { selectCurrentOffererId } from 'commons/store/offerer/selectors' import { queryParamsFromOfferer } from 'commons/utils/queryParamsFromOfferer' import { diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferEdition/CollectiveOfferEdition.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferEdition/CollectiveOfferEdition.tsx index 1ef89ed28e6..2ddec7ff061 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferEdition/CollectiveOfferEdition.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferEdition/CollectiveOfferEdition.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Layout } from 'app/App/layout/Layout' import { diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormAccessibility/FormAccessibility.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormAccessibility/FormAccessibility.tsx index 6a17539dda5..5b3ec151ad9 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormAccessibility/FormAccessibility.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormAccessibility/FormAccessibility.tsx @@ -1,5 +1,4 @@ import { useFormikContext } from 'formik' -import React from 'react' import { OfferEducationalFormValues } from 'commons/core/OfferEducational/types' import { useAccessibilityOptions } from 'commons/hooks/useAccessibilityOptions' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormImageUploader/FormImageUploader.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormImageUploader/FormImageUploader.tsx index 46d9943e2be..9f2f650196f 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormImageUploader/FormImageUploader.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormImageUploader/FormImageUploader.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { OfferCollectiveImage } from 'commons/core/Offers/types' import { FormLayout } from 'components/FormLayout/FormLayout' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormNotifications/EmailInputRow/__specs__/EmailInputRow.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormNotifications/EmailInputRow/__specs__/EmailInputRow.spec.tsx index d9eb7a1f14c..6065805f7f8 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormNotifications/EmailInputRow/__specs__/EmailInputRow.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormNotifications/EmailInputRow/__specs__/EmailInputRow.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { Formik } from 'formik' -import React from 'react' import { EmailInputRow } from '../EmailInputRow' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormNotifications/__specs__/FormNotifications.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormNotifications/__specs__/FormNotifications.spec.tsx index 1bb9f92684e..136d5803597 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormNotifications/__specs__/FormNotifications.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormNotifications/__specs__/FormNotifications.spec.tsx @@ -1,7 +1,6 @@ import { render, screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Formik } from 'formik' -import React from 'react' import * as yup from 'yup' import { OfferEducationalFormValues } from 'commons/core/OfferEducational/types' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormParticipants/FormParticipants.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormParticipants/FormParticipants.tsx index bfbbda37066..eee5bd4f9e5 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormParticipants/FormParticipants.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormParticipants/FormParticipants.tsx @@ -1,5 +1,4 @@ import { useFormikContext } from 'formik' -import React from 'react' import { StudentLevels } from 'apiClient/adage' import { OfferEducationalFormValues } from 'commons/core/OfferEducational/types' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormParticipants/__specs__/FormParticipants.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormParticipants/__specs__/FormParticipants.spec.tsx index 3e696906b6d..44dc2152905 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormParticipants/__specs__/FormParticipants.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormParticipants/__specs__/FormParticipants.spec.tsx @@ -1,7 +1,6 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Formik } from 'formik' -import React from 'react' import { StudentLevels } from 'apiClient/v1' import { buildStudentLevelsMapWithDefaultValue } from 'commons/core/OfferEducational/utils/buildStudentLevelsMapWithDefaultValue' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormPracticalInformation/__specs__/FormPracticalInformation.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormPracticalInformation/__specs__/FormPracticalInformation.spec.tsx index c88b23c06a3..53fe53f45c5 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormPracticalInformation/__specs__/FormPracticalInformation.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormPracticalInformation/__specs__/FormPracticalInformation.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { Formik } from 'formik' -import React from 'react' import { OfferAddressType } from 'apiClient/v1' import { OfferEducationalFormValues } from 'commons/core/OfferEducational/types' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormVenue/FormVenue.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormVenue/FormVenue.tsx index 2e8b5a35f0a..99790d6f1c5 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormVenue/FormVenue.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormVenue/FormVenue.tsx @@ -8,7 +8,6 @@ import { } from 'apiClient/v1' import { isCollectiveOffer, - Mode, OfferEducationalFormValues, } from 'commons/core/OfferEducational/types' import { applyVenueDefaultsToFormValues } from 'commons/core/OfferEducational/utils/applyVenueDefaultsToFormValues' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/__specs__/OfferEducationalEditionOffererStep.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/__specs__/OfferEducationalEditionOffererStep.spec.tsx index 6ddf31ce67f..f25b5a74611 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/__specs__/OfferEducationalEditionOffererStep.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/__specs__/OfferEducationalEditionOffererStep.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { CollectiveBookingStatus } from 'apiClient/v1' import { Mode } from 'commons/core/OfferEducational/types' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation.tsx index d0afa47bb5f..6b3fd76750d 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Layout } from 'app/App/layout/Layout' import { isCollectiveOfferTemplate } from 'commons/core/OfferEducational/types' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation/CollectiveOfferConfirmation.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation/CollectiveOfferConfirmation.tsx index 5cf38f6a71e..2a102cc8610 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation/CollectiveOfferConfirmation.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation/CollectiveOfferConfirmation.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { CollectiveOfferStatus } from 'apiClient/v1' import fullValidateIcon from 'icons/full-validate.svg' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation/__specs__/CollectiveOfferConfirmation.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation/__specs__/CollectiveOfferConfirmation.spec.tsx index 4fe56a00e3f..d8b11cba175 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation/__specs__/CollectiveOfferConfirmation.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferConfirmation/CollectiveOfferConfirmation/__specs__/CollectiveOfferConfirmation.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { CollectiveOfferStatus } from 'apiClient/v1' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferStock/CollectiveOfferStockCreation/__specs__/CollectiveOfferStockCreation.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferStock/CollectiveOfferStockCreation/__specs__/CollectiveOfferStockCreation.spec.tsx index 6b4527a240c..1aa8295a494 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferStock/CollectiveOfferStockCreation/__specs__/CollectiveOfferStockCreation.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferStock/CollectiveOfferStockCreation/__specs__/CollectiveOfferStockCreation.spec.tsx @@ -1,5 +1,4 @@ import { screen, waitFor } from '@testing-library/react' -import React from 'react' import { api } from 'apiClient/api' import { diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferStock/components/OfferEducationalStock/FormStock/__specs__/FormStock.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferStock/components/OfferEducationalStock/FormStock/__specs__/FormStock.spec.tsx index 91940baa22e..5c76e713bfa 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferStock/components/OfferEducationalStock/FormStock/__specs__/FormStock.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferStock/components/OfferEducationalStock/FormStock/__specs__/FormStock.spec.tsx @@ -1,4 +1,4 @@ -import { render, screen, waitFor } from '@testing-library/react' +import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { addDays, format } from 'date-fns' import { Form, Formik } from 'formik' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/CollectiveOfferSummaryCreation/CollectiveOfferSummaryCreation.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/CollectiveOfferSummaryCreation/CollectiveOfferSummaryCreation.tsx index 0977ad890ab..c40060e0acc 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/CollectiveOfferSummaryCreation/CollectiveOfferSummaryCreation.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/CollectiveOfferSummaryCreation/CollectiveOfferSummaryCreation.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useParams } from 'react-router-dom' import { Layout } from 'app/App/layout/Layout' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferImagePreview.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferImagePreview.tsx index 19d208b5340..131638c6fc6 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferImagePreview.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferImagePreview.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { GetCollectiveOfferResponseModel, diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferNotificationSection.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferNotificationSection.tsx index 4c1eb1842f3..c6d708f5735 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferNotificationSection.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferNotificationSection.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { SummaryDescriptionList } from 'components/SummaryLayout/SummaryDescriptionList' import { SummarySubSection } from 'components/SummaryLayout/SummarySubSection' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferParticipantSection.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferParticipantSection.tsx index 83c5572cf1a..a78974252b9 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferParticipantSection.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferParticipantSection.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { StudentLevels } from 'apiClient/v1' import { SummaryDescriptionList } from 'components/SummaryLayout/SummaryDescriptionList' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferPriceSection.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferPriceSection.tsx index 2a46b0ad3ca..2399558ea27 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferPriceSection.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferPriceSection.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { GetCollectiveOfferTemplateResponseModel } from 'apiClient/v1' import { SummaryDescriptionList } from 'components/SummaryLayout/SummaryDescriptionList' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferStockSection.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferStockSection.tsx index f5d452eda87..7425f1dda60 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferStockSection.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferStockSection.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { GetCollectiveOfferCollectiveStockResponseModel } from 'apiClient/v1' import { FORMAT_DD_MM_YYYY, FORMAT_HH_mm } from 'commons/utils/date' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferVenueSection.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferVenueSection.tsx index 034031e4dd2..0f7f666bb3a 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferVenueSection.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferVenueSection.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { GetCollectiveOfferVenueResponseModel } from 'apiClient/v1' import { useActiveFeature } from 'commons/hooks/useActiveFeature' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferVisibilitySection.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferVisibilitySection.tsx index 791ad69bbcc..0f3d193741b 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferVisibilitySection.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/CollectiveOfferVisibilitySection.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { EducationalInstitutionResponseModel, diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferDateSection.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferDateSection.spec.tsx index 4d7de086750..3ac8a4a30bd 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferDateSection.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferDateSection.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { getCollectiveOfferTemplateFactory } from 'commons/utils/factories/collectiveApiFactories' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferLocationSection.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferLocationSection.spec.tsx index 6198a9f03f8..5385d569178 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferLocationSection.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferLocationSection.spec.tsx @@ -1,5 +1,4 @@ import { screen, waitFor } from '@testing-library/react' -import React from 'react' import { api } from 'apiClient/api' import { OfferAddressType } from 'apiClient/v1' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferPriceSection.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferPriceSection.spec.tsx index 983deb3ce15..0419238ac8d 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferPriceSection.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferPriceSection.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { getCollectiveOfferTemplateFactory } from 'commons/utils/factories/collectiveApiFactories' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferStockSection.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferStockSection.spec.tsx index c32ec6fe056..b74b6368b32 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferStockSection.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferStockSection.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { getCollectiveOfferCollectiveStockFactory } from 'commons/utils/factories/collectiveApiFactories' import { TOTAL_PRICE_LABEL } from 'pages/CollectiveOffer/CollectiveOfferStock/components/OfferEducationalStock/constants/labels' diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferVisibilitySection.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferVisibilitySection.spec.tsx index b2ca950d5ba..fcdd7b0c642 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferVisibilitySection.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/components/CollectiveOfferSummary/components/__specs__/CollectiveOfferVisibilitySection.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { EducationalInstitutionResponseModel, diff --git a/pro/src/pages/CollectiveOfferFromRequest/CollectiveOfferFromRequest.spec.tsx b/pro/src/pages/CollectiveOfferFromRequest/CollectiveOfferFromRequest.spec.tsx index f92d1029ac5..4a60f193cdd 100644 --- a/pro/src/pages/CollectiveOfferFromRequest/CollectiveOfferFromRequest.spec.tsx +++ b/pro/src/pages/CollectiveOfferFromRequest/CollectiveOfferFromRequest.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitForElementToBeRemoved } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import * as useAnalytics from 'app/App/analytics/firebase' diff --git a/pro/src/pages/CollectiveOfferVisibility/CollectiveOfferEditionVisibility.tsx b/pro/src/pages/CollectiveOfferVisibility/CollectiveOfferEditionVisibility.tsx index bffe9c83aba..2a5084b320e 100644 --- a/pro/src/pages/CollectiveOfferVisibility/CollectiveOfferEditionVisibility.tsx +++ b/pro/src/pages/CollectiveOfferVisibility/CollectiveOfferEditionVisibility.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useNavigate } from 'react-router-dom' import useSWR, { useSWRConfig } from 'swr' diff --git a/pro/src/pages/CollectiveOfferVisibility/__specs__/CollectiveOfferCreationVisibility.spec.tsx b/pro/src/pages/CollectiveOfferVisibility/__specs__/CollectiveOfferCreationVisibility.spec.tsx index 2357431250a..e49aa90b4f2 100644 --- a/pro/src/pages/CollectiveOfferVisibility/__specs__/CollectiveOfferCreationVisibility.spec.tsx +++ b/pro/src/pages/CollectiveOfferVisibility/__specs__/CollectiveOfferCreationVisibility.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { getCollectiveOfferFactory } from 'commons/utils/factories/collectiveApiFactories' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/EmailChangeValidation/EmailChangeValidation.tsx b/pro/src/pages/EmailChangeValidation/EmailChangeValidation.tsx index bd8fdabd6f6..63d37e80132 100644 --- a/pro/src/pages/EmailChangeValidation/EmailChangeValidation.tsx +++ b/pro/src/pages/EmailChangeValidation/EmailChangeValidation.tsx @@ -1,5 +1,5 @@ // react hooks and usages doc : https://reactjs.org/docs/hooks-intro.html -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { useDispatch } from 'react-redux' import { useLocation } from 'react-router-dom' diff --git a/pro/src/pages/EmailChangeValidation/components/EmailChangeValidation/__specs__/EmailChangeValidation.spec.tsx b/pro/src/pages/EmailChangeValidation/components/EmailChangeValidation/__specs__/EmailChangeValidation.spec.tsx index 3c5e20b1043..14669c5c666 100644 --- a/pro/src/pages/EmailChangeValidation/components/EmailChangeValidation/__specs__/EmailChangeValidation.spec.tsx +++ b/pro/src/pages/EmailChangeValidation/components/EmailChangeValidation/__specs__/EmailChangeValidation.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/Errors/NotFound/__specs__/NotFound.spec.tsx b/pro/src/pages/Errors/NotFound/__specs__/NotFound.spec.tsx index 81a341e4d77..61032cdfdd4 100644 --- a/pro/src/pages/Errors/NotFound/__specs__/NotFound.spec.tsx +++ b/pro/src/pages/Errors/NotFound/__specs__/NotFound.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/Errors/Unavailable/Unavailable.tsx b/pro/src/pages/Errors/Unavailable/Unavailable.tsx index 9e7e7a3f172..8a15edbcc0d 100644 --- a/pro/src/pages/Errors/Unavailable/Unavailable.tsx +++ b/pro/src/pages/Errors/Unavailable/Unavailable.tsx @@ -1,4 +1,3 @@ -import React from 'react' import strokeWipIcon from 'icons/stroke-wip.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/pages/Homepage/__specs__/Homepage.spec.tsx b/pro/src/pages/Homepage/__specs__/Homepage.spec.tsx index fc63626058c..f337dc96142 100644 --- a/pro/src/pages/Homepage/__specs__/Homepage.spec.tsx +++ b/pro/src/pages/Homepage/__specs__/Homepage.spec.tsx @@ -3,7 +3,6 @@ import { waitFor, waitForElementToBeRemoved, } from '@testing-library/react' -import React from 'react' import { api } from 'apiClient/api' import { HTTP_STATUS } from 'apiClient/helpers' diff --git a/pro/src/pages/Homepage/components/AddBankAccountCallout/AddBankAccountCallout.spec.tsx b/pro/src/pages/Homepage/components/AddBankAccountCallout/AddBankAccountCallout.spec.tsx index acd7eb2a74c..12b7c8fade4 100644 --- a/pro/src/pages/Homepage/components/AddBankAccountCallout/AddBankAccountCallout.spec.tsx +++ b/pro/src/pages/Homepage/components/AddBankAccountCallout/AddBankAccountCallout.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as useAnalytics from 'app/App/analytics/firebase' import { BankAccountEvents } from 'commons/core/FirebaseEvents/constants' diff --git a/pro/src/pages/Homepage/components/Offerers/components/OffererBanners/OffererBanners.tsx b/pro/src/pages/Homepage/components/Offerers/components/OffererBanners/OffererBanners.tsx index 1930fc08755..1cf9d885f09 100644 --- a/pro/src/pages/Homepage/components/Offerers/components/OffererBanners/OffererBanners.tsx +++ b/pro/src/pages/Homepage/components/Offerers/components/OffererBanners/OffererBanners.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { GetOffererResponseModel } from 'apiClient/v1' import { useActiveFeature } from 'commons/hooks/useActiveFeature' diff --git a/pro/src/pages/Homepage/components/Offerers/components/VenueCreationLinks/VenueCreationLinks.spec.tsx b/pro/src/pages/Homepage/components/Offerers/components/VenueCreationLinks/VenueCreationLinks.spec.tsx index bdc4fc22890..3614c9982c1 100644 --- a/pro/src/pages/Homepage/components/Offerers/components/VenueCreationLinks/VenueCreationLinks.spec.tsx +++ b/pro/src/pages/Homepage/components/Offerers/components/VenueCreationLinks/VenueCreationLinks.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as useAnalytics from 'app/App/analytics/firebase' import { Events } from 'commons/core/FirebaseEvents/constants' diff --git a/pro/src/pages/Homepage/components/Offerers/components/VenueList/VenueList.tsx b/pro/src/pages/Homepage/components/Offerers/components/VenueList/VenueList.tsx index 1ffdd7e2f36..a6edc9ea3ae 100644 --- a/pro/src/pages/Homepage/components/Offerers/components/VenueList/VenueList.tsx +++ b/pro/src/pages/Homepage/components/Offerers/components/VenueList/VenueList.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { GetOffererResponseModel } from 'apiClient/v1' import { diff --git a/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/Venue.spec.tsx b/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/Venue.spec.tsx index 39eb6080576..704a381c50e 100644 --- a/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/Venue.spec.tsx +++ b/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/Venue.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { defaultGetOffererVenueResponseModel, diff --git a/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/Venue.tracker.spec.tsx b/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/Venue.tracker.spec.tsx index 89e91a3be57..46bf4b8432f 100644 --- a/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/Venue.tracker.spec.tsx +++ b/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/Venue.tracker.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as useAnalytics from 'app/App/analytics/firebase' import { VenueEvents } from 'commons/core/FirebaseEvents/constants' diff --git a/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/VenueList.spec.tsx b/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/VenueList.spec.tsx index d89ab646d7c..5ac83eeb8e8 100644 --- a/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/VenueList.spec.tsx +++ b/pro/src/pages/Homepage/components/Offerers/components/VenueList/__specs__/VenueList.spec.tsx @@ -1,5 +1,4 @@ import { screen, within } from '@testing-library/react' -import React from 'react' import { defaultGetOffererVenueResponseModel, diff --git a/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/CumulatedViews.spec.tsx b/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/CumulatedViews.spec.tsx index cec921e42e0..85a03caad52 100644 --- a/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/CumulatedViews.spec.tsx +++ b/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/CumulatedViews.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { add, format } from 'date-fns' -import React from 'react' import { FORMAT_ISO_DATE_ONLY } from 'commons/utils/date' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/MostViewedOffers.spec.tsx b/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/MostViewedOffers.spec.tsx index ca621ea8227..5dd9e799319 100644 --- a/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/MostViewedOffers.spec.tsx +++ b/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/MostViewedOffers.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/OfferStats.spec.tsx b/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/OfferStats.spec.tsx index e5dc5b013b2..20882fc88bc 100644 --- a/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/OfferStats.spec.tsx +++ b/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/OfferStats.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { api } from 'apiClient/api' import { defaultGetOffererResponseModel } from 'commons/utils/factories/individualApiFactories' diff --git a/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/StatisticsDashboard.spec.tsx b/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/StatisticsDashboard.spec.tsx index 73840735bfa..99ce6782168 100644 --- a/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/StatisticsDashboard.spec.tsx +++ b/pro/src/pages/Homepage/components/StatisticsDashboard/__specs__/StatisticsDashboard.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { api } from 'apiClient/api' import { defaultGetOffererResponseModel } from 'commons/utils/factories/individualApiFactories' diff --git a/pro/src/pages/Homepage/components/StatisticsDashboard/components/CumulatedViews.tsx b/pro/src/pages/Homepage/components/StatisticsDashboard/components/CumulatedViews.tsx index 592b5a7e5fe..69ba1a140b1 100644 --- a/pro/src/pages/Homepage/components/StatisticsDashboard/components/CumulatedViews.tsx +++ b/pro/src/pages/Homepage/components/StatisticsDashboard/components/CumulatedViews.tsx @@ -1,5 +1,4 @@ import { fr } from 'date-fns/locale' -import React from 'react' import { Line } from 'react-chartjs-2' import { OffererViewsModel } from 'apiClient/v1' diff --git a/pro/src/pages/Homepage/components/StatisticsDashboard/components/MostViewedOffers.tsx b/pro/src/pages/Homepage/components/StatisticsDashboard/components/MostViewedOffers.tsx index 378a13fa155..99c7e515a35 100644 --- a/pro/src/pages/Homepage/components/StatisticsDashboard/components/MostViewedOffers.tsx +++ b/pro/src/pages/Homepage/components/StatisticsDashboard/components/MostViewedOffers.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { TopOffersResponseData } from 'apiClient/v1' import { pluralizeString } from 'commons/utils/pluralize' diff --git a/pro/src/pages/Homepage/components/VenueOfferSteps/VenueOfferSteps.tsx b/pro/src/pages/Homepage/components/VenueOfferSteps/VenueOfferSteps.tsx index a0b2cd4faaf..6ace3c024fa 100644 --- a/pro/src/pages/Homepage/components/VenueOfferSteps/VenueOfferSteps.tsx +++ b/pro/src/pages/Homepage/components/VenueOfferSteps/VenueOfferSteps.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { GetOffererResponseModel, diff --git a/pro/src/pages/Homepage/components/VenueOfferSteps/__specs__/VenueOfferSteps.tracker.spec.tsx b/pro/src/pages/Homepage/components/VenueOfferSteps/__specs__/VenueOfferSteps.tracker.spec.tsx index 872e7afbb6e..e448aa62b02 100644 --- a/pro/src/pages/Homepage/components/VenueOfferSteps/__specs__/VenueOfferSteps.tracker.spec.tsx +++ b/pro/src/pages/Homepage/components/VenueOfferSteps/__specs__/VenueOfferSteps.tracker.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as useAnalytics from 'app/App/analytics/firebase' import { Events, VenueEvents } from 'commons/core/FirebaseEvents/constants' diff --git a/pro/src/pages/IndividualOffer/IndividualOfferConfirmation/IndividualOfferConfirmation.spec.tsx b/pro/src/pages/IndividualOffer/IndividualOfferConfirmation/IndividualOfferConfirmation.spec.tsx index a7d70d07ca6..9ddc3729ca8 100644 --- a/pro/src/pages/IndividualOffer/IndividualOfferConfirmation/IndividualOfferConfirmation.spec.tsx +++ b/pro/src/pages/IndividualOffer/IndividualOfferConfirmation/IndividualOfferConfirmation.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/ImageUploaderOffer.tsx b/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/ImageUploaderOffer.tsx index 1fa8ea44920..f29d6701f1e 100644 --- a/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/ImageUploaderOffer.tsx +++ b/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/ImageUploaderOffer.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useSelector } from 'react-redux' import { useAnalytics } from 'app/App/analytics/firebase' diff --git a/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/__specs__/ImageUploaderOffer.spec.tsx b/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/__specs__/ImageUploaderOffer.spec.tsx index 921b825e831..a1fa1797d16 100644 --- a/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/__specs__/ImageUploaderOffer.spec.tsx +++ b/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/__specs__/ImageUploaderOffer.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/__specs__/ImageUploaderOffer.tracker.spec.tsx b/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/__specs__/ImageUploaderOffer.tracker.spec.tsx index c1603390d7b..09534ce368d 100644 --- a/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/__specs__/ImageUploaderOffer.tracker.spec.tsx +++ b/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/DetailsForm/ImageUploaderOffer/__specs__/ImageUploaderOffer.tracker.spec.tsx @@ -1,7 +1,6 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Form, Formik } from 'formik' -import React from 'react' import * as useAnalytics from 'app/App/analytics/firebase' import { IndividualOfferContext } from 'commons/context/IndividualOfferContext/IndividualOfferContext' diff --git a/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/IndividualOfferDetailsScreen.tsx b/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/IndividualOfferDetailsScreen.tsx index 1d8795145fd..6513ef7cc86 100644 --- a/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/IndividualOfferDetailsScreen.tsx +++ b/pro/src/pages/IndividualOffer/IndividualOfferDetails/components/IndividualOfferDetailsScreen.tsx @@ -16,9 +16,7 @@ import { isOfferProductBased, isOfferSynchronized, } from 'commons/core/Offers/utils/typology' -import { PATCH_SUCCESS_MESSAGE } from 'commons/core/shared/constants' import { useActiveFeature } from 'commons/hooks/useActiveFeature' -import { useNotification } from 'commons/hooks/useNotification' import { useOfferWizardMode } from 'commons/hooks/useOfferWizardMode' import { isRecordStore, @@ -66,7 +64,6 @@ export const IndividualOfferDetailsScreen = ({ const { pathname } = useLocation() const isOnboarding = pathname.indexOf('onboarding') !== -1 const { logEvent } = useAnalytics() - const notify = useNotification() const { mutate } = useSWRConfig() const { search } = useLocation() const mode = useOfferWizardMode() diff --git a/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/IndividualOfferBookings.tsx b/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/IndividualOfferBookings.tsx index cd2bc2674e8..3b36b4dd321 100644 --- a/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/IndividualOfferBookings.tsx +++ b/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/IndividualOfferBookings.tsx @@ -1,5 +1,4 @@ /* istanbul ignore file */ -import React from 'react' import { useIndividualOfferContext } from 'commons/context/IndividualOfferContext/IndividualOfferContext' import { useOfferWizardMode } from 'commons/hooks/useOfferWizardMode' diff --git a/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/components/IndividualOfferBookingsSummaryScreen.spec.tsx b/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/components/IndividualOfferBookingsSummaryScreen.spec.tsx index 899d53c6208..44dbd38163d 100644 --- a/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/components/IndividualOfferBookingsSummaryScreen.spec.tsx +++ b/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/components/IndividualOfferBookingsSummaryScreen.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitForElementToBeRemoved } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { GetIndividualOfferWithAddressResponseModel } from 'apiClient/v1' diff --git a/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/components/IndividualOfferBookingsSummaryScreen.tsx b/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/components/IndividualOfferBookingsSummaryScreen.tsx index 1b8906c8c85..dc96c9895d6 100644 --- a/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/components/IndividualOfferBookingsSummaryScreen.tsx +++ b/pro/src/pages/IndividualOffer/IndividualOfferSummary/IndividualOfferBookings/components/IndividualOfferBookingsSummaryScreen.tsx @@ -1,5 +1,5 @@ import { format } from 'date-fns' -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import useSWR from 'swr' import { api } from 'apiClient/api' diff --git a/pro/src/pages/IndividualOffer/commons/serializers.ts b/pro/src/pages/IndividualOffer/commons/serializers.ts index f2f75368586..7e3f55c3470 100644 --- a/pro/src/pages/IndividualOffer/commons/serializers.ts +++ b/pro/src/pages/IndividualOffer/commons/serializers.ts @@ -78,6 +78,7 @@ export const serializePatchOffer = ({ editableFields.push(...allocineEditableFields) } + // eslint-disable-next-line @typescript-eslint/no-unused-vars const filtered = asArray.filter(([key, _]) => editableFields.includes(key)) sentValues = Object.fromEntries(filtered) diff --git a/pro/src/pages/IndividualOffer/components/ActionBar/ActionBar.spec.tsx b/pro/src/pages/IndividualOffer/components/ActionBar/ActionBar.spec.tsx index 96e100991c8..16dd7f47d43 100644 --- a/pro/src/pages/IndividualOffer/components/ActionBar/ActionBar.spec.tsx +++ b/pro/src/pages/IndividualOffer/components/ActionBar/ActionBar.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' import { OFFER_WIZARD_STEP_IDS } from 'components/IndividualOfferNavigation/constants' diff --git a/pro/src/pages/IndividualOffer/components/ActionBar/ActionBar.tsx b/pro/src/pages/IndividualOffer/components/ActionBar/ActionBar.tsx index f45c88006eb..5124f14959e 100644 --- a/pro/src/pages/IndividualOffer/components/ActionBar/ActionBar.tsx +++ b/pro/src/pages/IndividualOffer/components/ActionBar/ActionBar.tsx @@ -1,4 +1,3 @@ -import cn from 'classnames' import { useLocation } from 'react-router-dom' import { OFFER_WIZARD_MODE } from 'commons/core/Offers/constants' diff --git a/pro/src/pages/IndividualOfferWizard/IndividualOfferWizard.spec.tsx b/pro/src/pages/IndividualOfferWizard/IndividualOfferWizard.spec.tsx index 40b59fda1eb..7f19a1169c0 100644 --- a/pro/src/pages/IndividualOfferWizard/IndividualOfferWizard.spec.tsx +++ b/pro/src/pages/IndividualOfferWizard/IndividualOfferWizard.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { Routes, Route } from 'react-router-dom' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/IndividualOfferWizard/PriceCategories/__specs__/PriceCategories.spec.tsx b/pro/src/pages/IndividualOfferWizard/PriceCategories/__specs__/PriceCategories.spec.tsx index b5a1cc637e7..4f2db1f4da4 100644 --- a/pro/src/pages/IndividualOfferWizard/PriceCategories/__specs__/PriceCategories.spec.tsx +++ b/pro/src/pages/IndividualOfferWizard/PriceCategories/__specs__/PriceCategories.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { Routes, Route } from 'react-router-dom' import { diff --git a/pro/src/pages/IndividualOfferWizard/Stocks/__specs__/Stocks.spec.tsx b/pro/src/pages/IndividualOfferWizard/Stocks/__specs__/Stocks.spec.tsx index e47c5a792c7..c9c703052b4 100644 --- a/pro/src/pages/IndividualOfferWizard/Stocks/__specs__/Stocks.spec.tsx +++ b/pro/src/pages/IndividualOfferWizard/Stocks/__specs__/Stocks.spec.tsx @@ -1,5 +1,4 @@ import { screen, waitFor } from '@testing-library/react' -import React from 'react' import { api } from 'apiClient/api' import { diff --git a/pro/src/pages/IndividualOfferWizard/StocksSummary/StocksSummary.tsx b/pro/src/pages/IndividualOfferWizard/StocksSummary/StocksSummary.tsx index fcd2c16fa2a..68748384b9a 100644 --- a/pro/src/pages/IndividualOfferWizard/StocksSummary/StocksSummary.tsx +++ b/pro/src/pages/IndividualOfferWizard/StocksSummary/StocksSummary.tsx @@ -1,5 +1,4 @@ /* istanbul ignore file: DEBT, TO FIX */ -import React from 'react' import { useIndividualOfferContext } from 'commons/context/IndividualOfferContext/IndividualOfferContext' import { useOfferWizardMode } from 'commons/hooks/useOfferWizardMode' diff --git a/pro/src/pages/IndividualOfferWizard/Summary/Summary.tsx b/pro/src/pages/IndividualOfferWizard/Summary/Summary.tsx index cab24fac730..2873a9ec84a 100644 --- a/pro/src/pages/IndividualOfferWizard/Summary/Summary.tsx +++ b/pro/src/pages/IndividualOfferWizard/Summary/Summary.tsx @@ -1,5 +1,4 @@ /* istanbul ignore file: DEBT, TO FIX */ -import React from 'react' import { useIndividualOfferContext } from 'commons/context/IndividualOfferContext/IndividualOfferContext' import { OFFER_WIZARD_MODE } from 'commons/core/Offers/constants' diff --git a/pro/src/pages/IndividualOffers/IndividualOffersContainer/components/IndividualOffersTable/components/IndividualOfferRow/IndividualOfferRow.spec.tsx b/pro/src/pages/IndividualOffers/IndividualOffersContainer/components/IndividualOffersTable/components/IndividualOfferRow/IndividualOfferRow.spec.tsx index a9137aaac35..7fe6880e5d4 100644 --- a/pro/src/pages/IndividualOffers/IndividualOffersContainer/components/IndividualOffersTable/components/IndividualOfferRow/IndividualOfferRow.spec.tsx +++ b/pro/src/pages/IndividualOffers/IndividualOffersContainer/components/IndividualOffersTable/components/IndividualOfferRow/IndividualOfferRow.spec.tsx @@ -1,4 +1,4 @@ -import { screen, within } from '@testing-library/react' +import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { api } from 'apiClient/api' diff --git a/pro/src/pages/IndividualOffers/__specs__/IndividualOffers.admin.spec.tsx b/pro/src/pages/IndividualOffers/__specs__/IndividualOffers.admin.spec.tsx index 21a1b71931b..dadc70bbeac 100644 --- a/pro/src/pages/IndividualOffers/__specs__/IndividualOffers.admin.spec.tsx +++ b/pro/src/pages/IndividualOffers/__specs__/IndividualOffers.admin.spec.tsx @@ -51,7 +51,6 @@ const renderOffers = async ( audience?: Audience } = DEFAULT_SEARCH_FILTERS, user = sharedCurrentUserFactory({ isAdmin: true }), - selectedOffererId: number | null = 1 ) => { const route = computeIndividualOffersUrl(filters) diff --git a/pro/src/pages/IndividualOffers/__specs__/IndividualOffers.spec.tsx b/pro/src/pages/IndividualOffers/__specs__/IndividualOffers.spec.tsx index 85ea171ac63..21ccba7157c 100644 --- a/pro/src/pages/IndividualOffers/__specs__/IndividualOffers.spec.tsx +++ b/pro/src/pages/IndividualOffers/__specs__/IndividualOffers.spec.tsx @@ -74,7 +74,6 @@ const renderOffers = async ( } = DEFAULT_SEARCH_FILTERS, features: string[] = [], user = sharedCurrentUserFactory(), - selectedOffererId: number | null = 1 ) => { const route = computeIndividualOffersUrl(filters) diff --git a/pro/src/pages/LostPassword/ChangePasswordRequestForm/ChangePasswordRequestForm.tsx b/pro/src/pages/LostPassword/ChangePasswordRequestForm/ChangePasswordRequestForm.tsx index 9f9e1017d51..d9079e6341d 100644 --- a/pro/src/pages/LostPassword/ChangePasswordRequestForm/ChangePasswordRequestForm.tsx +++ b/pro/src/pages/LostPassword/ChangePasswordRequestForm/ChangePasswordRequestForm.tsx @@ -1,5 +1,4 @@ import { Form, useField } from 'formik' -import React from 'react' import { FormLayout } from 'components/FormLayout/FormLayout' import { ScrollToFirstErrorAfterSubmit } from 'components/ScrollToFirstErrorAfterSubmit/ScrollToFirstErrorAfterSubmit' diff --git a/pro/src/pages/LostPassword/__specs__/LostPassword.spec.tsx b/pro/src/pages/LostPassword/__specs__/LostPassword.spec.tsx index 88694428943..24e21e776c6 100644 --- a/pro/src/pages/LostPassword/__specs__/LostPassword.spec.tsx +++ b/pro/src/pages/LostPassword/__specs__/LostPassword.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as utils from 'commons/utils/recaptcha' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/OfferType/OfferType.spec.tsx b/pro/src/pages/OfferType/OfferType.spec.tsx index 547879f398d..bca91bd9645 100644 --- a/pro/src/pages/OfferType/OfferType.spec.tsx +++ b/pro/src/pages/OfferType/OfferType.spec.tsx @@ -1,12 +1,6 @@ import { screen } from '@testing-library/react' import { Route, Routes } from 'react-router-dom' -import { api } from 'apiClient/api' -import * as useAnalytics from 'app/App/analytics/firebase' -import { - defaultGetOffererResponseModel, - getOffererNameFactory, -} from 'commons/utils/factories/individualApiFactories' import { sharedCurrentUserFactory } from 'commons/utils/factories/storeFactories' import { renderWithProviders } from 'commons/utils/renderWithProviders' import { OfferType } from 'pages/OfferType/OfferType' diff --git a/pro/src/pages/OfferType/OfferType.tsx b/pro/src/pages/OfferType/OfferType.tsx index c244ad66897..c1699815203 100644 --- a/pro/src/pages/OfferType/OfferType.tsx +++ b/pro/src/pages/OfferType/OfferType.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useLocation } from 'react-router-dom' import { Layout } from 'app/App/layout/Layout' diff --git a/pro/src/pages/OffererStats/OffererStats.spec.tsx b/pro/src/pages/OffererStats/OffererStats.spec.tsx index d0a4d86fcc0..43e509869b7 100644 --- a/pro/src/pages/OffererStats/OffererStats.spec.tsx +++ b/pro/src/pages/OffererStats/OffererStats.spec.tsx @@ -1,5 +1,4 @@ import { screen, waitFor } from '@testing-library/react' -import React from 'react' import { api } from 'apiClient/api' import * as useNotification from 'commons/hooks/useNotification' diff --git a/pro/src/pages/OffererStats/OffererStats.tsx b/pro/src/pages/OffererStats/OffererStats.tsx index e68211e80f1..5f9008a252a 100644 --- a/pro/src/pages/OffererStats/OffererStats.tsx +++ b/pro/src/pages/OffererStats/OffererStats.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Layout } from 'app/App/layout/Layout' import { OffererStatsScreen } from 'pages/OffererStats/OffererStats/OffererStatsScreen' diff --git a/pro/src/pages/OffererStats/OffererStats/__specs__/OffererStatsScreen.spec.tsx b/pro/src/pages/OffererStats/OffererStats/__specs__/OffererStatsScreen.spec.tsx index 27c8bd07c84..5e5be8764ab 100644 --- a/pro/src/pages/OffererStats/OffererStats/__specs__/OffererStatsScreen.spec.tsx +++ b/pro/src/pages/OffererStats/OffererStats/__specs__/OffererStatsScreen.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { CancelablePromise, GetOffererResponseModel } from 'apiClient/v1' diff --git a/pro/src/pages/Offerers/Offerer/VenueV1/VenueEdition/CollectiveDataEdition/CollectiveDataEditionReadOnly.tsx b/pro/src/pages/Offerers/Offerer/VenueV1/VenueEdition/CollectiveDataEdition/CollectiveDataEditionReadOnly.tsx index 12dc8ce00d8..b19681b3a25 100644 --- a/pro/src/pages/Offerers/Offerer/VenueV1/VenueEdition/CollectiveDataEdition/CollectiveDataEditionReadOnly.tsx +++ b/pro/src/pages/Offerers/Offerer/VenueV1/VenueEdition/CollectiveDataEdition/CollectiveDataEditionReadOnly.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { GetVenueResponseModel } from 'apiClient/v1' import { SelectOption } from 'commons/custom_types/form' diff --git a/pro/src/pages/Offerers/Offerer/VenueV1/VenueEdition/CollectiveDataEdition/__specs__/CollectiveDataEdition.spec.tsx b/pro/src/pages/Offerers/Offerer/VenueV1/VenueEdition/CollectiveDataEdition/__specs__/CollectiveDataEdition.spec.tsx index f04e1e2ef5e..d292bdfce7d 100644 --- a/pro/src/pages/Offerers/Offerer/VenueV1/VenueEdition/CollectiveDataEdition/__specs__/CollectiveDataEdition.spec.tsx +++ b/pro/src/pages/Offerers/Offerer/VenueV1/VenueEdition/CollectiveDataEdition/__specs__/CollectiveDataEdition.spec.tsx @@ -4,7 +4,6 @@ import { waitForElementToBeRemoved, } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { ApiError } from 'apiClient/v1' diff --git a/pro/src/pages/Offerers/Offerer/VenueV1/fields/ReimbursementFields/__specs__/ReimbursementFields.spec.tsx b/pro/src/pages/Offerers/Offerer/VenueV1/fields/ReimbursementFields/__specs__/ReimbursementFields.spec.tsx index 5f6e18e7403..df96d1b47f1 100644 --- a/pro/src/pages/Offerers/Offerer/VenueV1/fields/ReimbursementFields/__specs__/ReimbursementFields.spec.tsx +++ b/pro/src/pages/Offerers/Offerer/VenueV1/fields/ReimbursementFields/__specs__/ReimbursementFields.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { Form, Formik } from 'formik' -import React from 'react' import { GetOffererResponseModel, diff --git a/pro/src/pages/Reimbursements/BankInformations/AddBankInformationsDialog.tsx b/pro/src/pages/Reimbursements/BankInformations/AddBankInformationsDialog.tsx index ff72c577a58..58a6434b8b0 100644 --- a/pro/src/pages/Reimbursements/BankInformations/AddBankInformationsDialog.tsx +++ b/pro/src/pages/Reimbursements/BankInformations/AddBankInformationsDialog.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useAnalytics } from 'app/App/analytics/firebase' import { BankAccountEvents } from 'commons/core/FirebaseEvents/constants' diff --git a/pro/src/pages/Reimbursements/BankInformations/__specs__/AddBankInformations.spec.tsx b/pro/src/pages/Reimbursements/BankInformations/__specs__/AddBankInformations.spec.tsx index 1b563e5ffc3..f0b7fdb35e9 100644 --- a/pro/src/pages/Reimbursements/BankInformations/__specs__/AddBankInformations.spec.tsx +++ b/pro/src/pages/Reimbursements/BankInformations/__specs__/AddBankInformations.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as useAnalytics from 'app/App/analytics/firebase' import { BankAccountEvents } from 'commons/core/FirebaseEvents/constants' diff --git a/pro/src/pages/Reimbursements/BankInformations/__specs__/BankInformations.spec.tsx b/pro/src/pages/Reimbursements/BankInformations/__specs__/BankInformations.spec.tsx index 95f849b1998..f4e3402e76e 100644 --- a/pro/src/pages/Reimbursements/BankInformations/__specs__/BankInformations.spec.tsx +++ b/pro/src/pages/Reimbursements/BankInformations/__specs__/BankInformations.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitForElementToBeRemoved } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Outlet, Route, Routes } from 'react-router-dom' import { expect } from 'vitest' diff --git a/pro/src/pages/Reimbursements/ReimbursementsInvoices/InvoicesServerError.tsx b/pro/src/pages/Reimbursements/ReimbursementsInvoices/InvoicesServerError.tsx index aea29b2af66..d0548ead286 100644 --- a/pro/src/pages/Reimbursements/ReimbursementsInvoices/InvoicesServerError.tsx +++ b/pro/src/pages/Reimbursements/ReimbursementsInvoices/InvoicesServerError.tsx @@ -1,4 +1,3 @@ -import React from 'react' import strokeWipIcon from 'icons/stroke-wip.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/pages/Reimbursements/ReimbursementsInvoices/NoInvoicesYet.tsx b/pro/src/pages/Reimbursements/ReimbursementsInvoices/NoInvoicesYet.tsx index 956f24f769b..d39aba72ba9 100644 --- a/pro/src/pages/Reimbursements/ReimbursementsInvoices/NoInvoicesYet.tsx +++ b/pro/src/pages/Reimbursements/ReimbursementsInvoices/NoInvoicesYet.tsx @@ -1,4 +1,3 @@ -import React from 'react' import strokeRepaymentIcon from 'icons/stroke-repayment.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/pages/Reimbursements/__specs__/BankInformations.spec.tsx b/pro/src/pages/Reimbursements/__specs__/BankInformations.spec.tsx index 96b636c405d..985a50d5b95 100644 --- a/pro/src/pages/Reimbursements/__specs__/BankInformations.spec.tsx +++ b/pro/src/pages/Reimbursements/__specs__/BankInformations.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as router from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/pages/Reimbursements/__specs__/LinkVenuesDialog.spec.tsx b/pro/src/pages/Reimbursements/__specs__/LinkVenuesDialog.spec.tsx index 695e3b3d5f6..461e4258f3c 100644 --- a/pro/src/pages/Reimbursements/__specs__/LinkVenuesDialog.spec.tsx +++ b/pro/src/pages/Reimbursements/__specs__/LinkVenuesDialog.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { BankAccountApplicationStatus } from 'apiClient/v1' diff --git a/pro/src/pages/ResetPassword/ChangePasswordForm/ChangePasswordForm.tsx b/pro/src/pages/ResetPassword/ChangePasswordForm/ChangePasswordForm.tsx index 1928b36564f..7a6239f467b 100644 --- a/pro/src/pages/ResetPassword/ChangePasswordForm/ChangePasswordForm.tsx +++ b/pro/src/pages/ResetPassword/ChangePasswordForm/ChangePasswordForm.tsx @@ -1,5 +1,4 @@ import { Form, useFormikContext } from 'formik' -import React from 'react' import { FormLayout } from 'components/FormLayout/FormLayout' import { ScrollToFirstErrorAfterSubmit } from 'components/ScrollToFirstErrorAfterSubmit/ScrollToFirstErrorAfterSubmit' diff --git a/pro/src/pages/ResetPassword/ResetPassword.tsx b/pro/src/pages/ResetPassword/ResetPassword.tsx index 98edd1dc542..6572e298e0d 100644 --- a/pro/src/pages/ResetPassword/ResetPassword.tsx +++ b/pro/src/pages/ResetPassword/ResetPassword.tsx @@ -1,5 +1,5 @@ import { FormikProvider, useFormik } from 'formik' -import React, { useState } from 'react' +import { useState } from 'react' import { useLocation } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/pages/ResetPassword/__specs__/ResetPassword.spec.tsx b/pro/src/pages/ResetPassword/__specs__/ResetPassword.spec.tsx index 6ceabf671ab..05f05b6df88 100644 --- a/pro/src/pages/ResetPassword/__specs__/ResetPassword.spec.tsx +++ b/pro/src/pages/ResetPassword/__specs__/ResetPassword.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/pages/Signup/SignUpValidation/__specs__/SignupValidation.spec.tsx b/pro/src/pages/Signup/SignUpValidation/__specs__/SignupValidation.spec.tsx index e982f7aef7c..96a1678b86b 100644 --- a/pro/src/pages/Signup/SignUpValidation/__specs__/SignupValidation.spec.tsx +++ b/pro/src/pages/Signup/SignUpValidation/__specs__/SignupValidation.spec.tsx @@ -1,5 +1,4 @@ import { screen, waitFor } from '@testing-library/react' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/pages/Signup/Signup.tsx b/pro/src/pages/Signup/Signup.tsx index 731bd41dd32..d172a00ef8c 100644 --- a/pro/src/pages/Signup/Signup.tsx +++ b/pro/src/pages/Signup/Signup.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Outlet } from 'react-router-dom' import { Layout } from 'app/App/layout/Layout' diff --git a/pro/src/pages/Signup/SignupConfirmation/SignupConfirmation.tsx b/pro/src/pages/Signup/SignupConfirmation/SignupConfirmation.tsx index 146ecd97037..54d1523a19a 100644 --- a/pro/src/pages/Signup/SignupConfirmation/SignupConfirmation.tsx +++ b/pro/src/pages/Signup/SignupConfirmation/SignupConfirmation.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useRedirectLoggedUser } from 'commons/hooks/useRedirectLoggedUser' import fullMailIcon from 'icons/full-mail.svg' diff --git a/pro/src/pages/Signup/SignupContainer/OperationProcedures/OperationProcedures.tsx b/pro/src/pages/Signup/SignupContainer/OperationProcedures/OperationProcedures.tsx index ba661a28b58..67c3b8a5315 100644 --- a/pro/src/pages/Signup/SignupContainer/OperationProcedures/OperationProcedures.tsx +++ b/pro/src/pages/Signup/SignupContainer/OperationProcedures/OperationProcedures.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useLocation } from 'react-router-dom' import { useAnalytics } from 'app/App/analytics/firebase' diff --git a/pro/src/pages/Signup/SignupContainer/SignupContainer.tsx b/pro/src/pages/Signup/SignupContainer/SignupContainer.tsx index 230969a5394..b45419b8926 100644 --- a/pro/src/pages/Signup/SignupContainer/SignupContainer.tsx +++ b/pro/src/pages/Signup/SignupContainer/SignupContainer.tsx @@ -1,5 +1,5 @@ import { Form, FormikProvider, useFormik } from 'formik' -import React, { useEffect, useRef } from 'react' +import { useEffect, useRef } from 'react' import { useNavigate } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/pages/Signup/SignupContainer/__specs__/SignupContainer.spec.tsx b/pro/src/pages/Signup/SignupContainer/__specs__/SignupContainer.spec.tsx index 468c1146a76..c5da593f72e 100644 --- a/pro/src/pages/Signup/SignupContainer/__specs__/SignupContainer.spec.tsx +++ b/pro/src/pages/Signup/SignupContainer/__specs__/SignupContainer.spec.tsx @@ -1,6 +1,5 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/pages/Signup/SignupUnavailable/SignupUnavailable.tsx b/pro/src/pages/Signup/SignupUnavailable/SignupUnavailable.tsx index 1c5a4311b05..a1332eb5bb8 100644 --- a/pro/src/pages/Signup/SignupUnavailable/SignupUnavailable.tsx +++ b/pro/src/pages/Signup/SignupUnavailable/SignupUnavailable.tsx @@ -1,4 +1,4 @@ -import React, { FunctionComponent } from 'react' +import { FunctionComponent } from 'react' import strokeWipIcon from 'icons/stroke-wip.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/pages/Signup/__specs__/Signup.spec.tsx b/pro/src/pages/Signup/__specs__/Signup.spec.tsx index beacf420dcc..ba9c397a7b6 100644 --- a/pro/src/pages/Signup/__specs__/Signup.spec.tsx +++ b/pro/src/pages/Signup/__specs__/Signup.spec.tsx @@ -1,5 +1,4 @@ import { screen, waitFor } from '@testing-library/react' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/pages/SignupJourneyRoutes/__specs__/SignupJourneyRoutes.spec.tsx b/pro/src/pages/SignupJourneyRoutes/__specs__/SignupJourneyRoutes.spec.tsx index 393eac4c745..caed313ef67 100644 --- a/pro/src/pages/SignupJourneyRoutes/__specs__/SignupJourneyRoutes.spec.tsx +++ b/pro/src/pages/SignupJourneyRoutes/__specs__/SignupJourneyRoutes.spec.tsx @@ -1,5 +1,4 @@ import { screen, waitFor } from '@testing-library/react' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { api } from 'apiClient/api' diff --git a/pro/src/pages/SignupJourneyRoutes/__specs__/SignupJourneyRoutes.trackers.spec.tsx b/pro/src/pages/SignupJourneyRoutes/__specs__/SignupJourneyRoutes.trackers.spec.tsx index ea6b72cd846..13e0e705976 100644 --- a/pro/src/pages/SignupJourneyRoutes/__specs__/SignupJourneyRoutes.trackers.spec.tsx +++ b/pro/src/pages/SignupJourneyRoutes/__specs__/SignupJourneyRoutes.trackers.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import * as useAnalytics from 'app/App/analytics/firebase' diff --git a/pro/src/pages/TemplateCollectiveOffers/__specs__/TemplateCollectiveOffersQueryParams.spec.tsx b/pro/src/pages/TemplateCollectiveOffers/__specs__/TemplateCollectiveOffersQueryParams.spec.tsx index 195058aff81..4b47d1acb16 100644 --- a/pro/src/pages/TemplateCollectiveOffers/__specs__/TemplateCollectiveOffersQueryParams.spec.tsx +++ b/pro/src/pages/TemplateCollectiveOffers/__specs__/TemplateCollectiveOffersQueryParams.spec.tsx @@ -33,7 +33,6 @@ vi.mock('react-router-dom', async () => ({ const renderOffers = async ( filters: Partial = DEFAULT_COLLECTIVE_TEMPLATE_SEARCH_FILTERS, user = sharedCurrentUserFactory(), - selectedOffererId: number | null = 1 ) => { const shouldComputeTemplateOfferUrl = true const route = computeCollectiveOffersUrl( diff --git a/pro/src/pages/User/UserProfile/UserEmail/BannerPendingEmailValidation/BannerPendingEmailValidation.spec.tsx b/pro/src/pages/User/UserProfile/UserEmail/BannerPendingEmailValidation/BannerPendingEmailValidation.spec.tsx index 0fdbc8a0ce5..c2856ae8ad6 100644 --- a/pro/src/pages/User/UserProfile/UserEmail/BannerPendingEmailValidation/BannerPendingEmailValidation.spec.tsx +++ b/pro/src/pages/User/UserProfile/UserEmail/BannerPendingEmailValidation/BannerPendingEmailValidation.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { BannerPendingEmailValidation } from './BannerPendingEmailValidation' diff --git a/pro/src/pages/User/UserProfile/UserEmail/BannerPendingEmailValidation/BannerPendingEmailValidation.tsx b/pro/src/pages/User/UserProfile/UserEmail/BannerPendingEmailValidation/BannerPendingEmailValidation.tsx index 42bb21f609a..195cb5276a3 100644 --- a/pro/src/pages/User/UserProfile/UserEmail/BannerPendingEmailValidation/BannerPendingEmailValidation.tsx +++ b/pro/src/pages/User/UserProfile/UserEmail/BannerPendingEmailValidation/BannerPendingEmailValidation.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Callout } from 'ui-kit/Callout/Callout' import { CalloutVariant } from 'ui-kit/Callout/types' diff --git a/pro/src/pages/VenueCreation/Accessibility/Accessibility.tsx b/pro/src/pages/VenueCreation/Accessibility/Accessibility.tsx index ff29738b15d..98755102019 100644 --- a/pro/src/pages/VenueCreation/Accessibility/Accessibility.tsx +++ b/pro/src/pages/VenueCreation/Accessibility/Accessibility.tsx @@ -1,6 +1,6 @@ import { useFormikContext } from 'formik' import isEqual from 'lodash.isequal' -import React, { useMemo } from 'react' +import { useMemo } from 'react' import { useAccessibilityOptions } from 'commons/hooks/useAccessibilityOptions' import { FormLayout } from 'components/FormLayout/FormLayout' diff --git a/pro/src/pages/VenueCreation/Accessibility/__specs__/Accessibility.spec.tsx b/pro/src/pages/VenueCreation/Accessibility/__specs__/Accessibility.spec.tsx index 4bd784c045e..3cfd2f5cfaf 100644 --- a/pro/src/pages/VenueCreation/Accessibility/__specs__/Accessibility.spec.tsx +++ b/pro/src/pages/VenueCreation/Accessibility/__specs__/Accessibility.spec.tsx @@ -1,7 +1,6 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Form, Formik } from 'formik' -import React from 'react' import { AccessibilityEnum } from 'commons/core/shared/types' import { diff --git a/pro/src/pages/VenueCreation/SiretOrCommentFields/SiretOrCommentFields.tsx b/pro/src/pages/VenueCreation/SiretOrCommentFields/SiretOrCommentFields.tsx index 65a883f51f6..77a19d42844 100644 --- a/pro/src/pages/VenueCreation/SiretOrCommentFields/SiretOrCommentFields.tsx +++ b/pro/src/pages/VenueCreation/SiretOrCommentFields/SiretOrCommentFields.tsx @@ -1,5 +1,5 @@ import { useFormikContext } from 'formik' -import React, { useEffect, useState } from 'react' +import { useState } from 'react' import { apiAdresse } from 'apiClient/adresse/apiAdresse' import { getSiretData } from 'commons/core/Venue/getSiretData' diff --git a/pro/src/pages/VenueCreation/SiretOrCommentFields/__specs__/SiretOrCommentFields.spec.tsx b/pro/src/pages/VenueCreation/SiretOrCommentFields/__specs__/SiretOrCommentFields.spec.tsx index e8b367db62a..abaeef11312 100644 --- a/pro/src/pages/VenueCreation/SiretOrCommentFields/__specs__/SiretOrCommentFields.spec.tsx +++ b/pro/src/pages/VenueCreation/SiretOrCommentFields/__specs__/SiretOrCommentFields.spec.tsx @@ -1,7 +1,6 @@ import { screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Formik } from 'formik' -import React from 'react' import { expect } from 'vitest' import * as siretApiValidate from 'commons/core/Venue/siretApiValidate' diff --git a/pro/src/pages/VenueCreation/VenueCreation.tsx b/pro/src/pages/VenueCreation/VenueCreation.tsx index 674b3e54de5..61d40bf3f02 100644 --- a/pro/src/pages/VenueCreation/VenueCreation.tsx +++ b/pro/src/pages/VenueCreation/VenueCreation.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useSelector } from 'react-redux' import { useNavigate, useParams } from 'react-router-dom' import useSWR from 'swr' diff --git a/pro/src/pages/VenueCreation/VenueFormActionBar/__specs__/VenueFormActionBar.spec.tsx b/pro/src/pages/VenueCreation/VenueFormActionBar/__specs__/VenueFormActionBar.spec.tsx index 25d5ee12688..06bb88c44e4 100644 --- a/pro/src/pages/VenueCreation/VenueFormActionBar/__specs__/VenueFormActionBar.spec.tsx +++ b/pro/src/pages/VenueCreation/VenueFormActionBar/__specs__/VenueFormActionBar.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { Formik } from 'formik' -import React from 'react' import { defaultGetVenue } from 'commons/utils/factories/collectiveApiFactories' import { sharedCurrentUserFactory } from 'commons/utils/factories/storeFactories' diff --git a/pro/src/pages/VenueCreation/__specs__/VenueCreation.spec.tsx b/pro/src/pages/VenueCreation/__specs__/VenueCreation.spec.tsx index 800c200d7e5..4de284da0ce 100644 --- a/pro/src/pages/VenueCreation/__specs__/VenueCreation.spec.tsx +++ b/pro/src/pages/VenueCreation/__specs__/VenueCreation.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { api } from 'apiClient/api' import { defaultGetOffererResponseModel } from 'commons/utils/factories/individualApiFactories' diff --git a/pro/src/pages/VenueEdition/AccesLibreSection/AccesLibreSection.tsx b/pro/src/pages/VenueEdition/AccesLibreSection/AccesLibreSection.tsx index cc9ee42ebdd..008c2aeccf4 100644 --- a/pro/src/pages/VenueEdition/AccesLibreSection/AccesLibreSection.tsx +++ b/pro/src/pages/VenueEdition/AccesLibreSection/AccesLibreSection.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { GetVenueResponseModel } from 'apiClient/v1' import { SummarySection } from 'components/SummaryLayout/SummarySection' diff --git a/pro/src/pages/VenueEdition/RouteLeavingGuardVenueEdition.tsx b/pro/src/pages/VenueEdition/RouteLeavingGuardVenueEdition.tsx index 17f39b79585..2d08e085c55 100644 --- a/pro/src/pages/VenueEdition/RouteLeavingGuardVenueEdition.tsx +++ b/pro/src/pages/VenueEdition/RouteLeavingGuardVenueEdition.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { RouteLeavingGuard, diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/AddVenueProviderButton.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/AddVenueProviderButton.tsx index 51580571411..ada76c7b7f2 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/AddVenueProviderButton.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/AddVenueProviderButton.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import { useState } from 'react' import useSWR, { useSWRConfig } from 'swr' import { api } from 'apiClient/api' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/DuoCheckbox/DuoCheckbox.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/DuoCheckbox/DuoCheckbox.tsx index 19373660638..73a5b5bc626 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/DuoCheckbox/DuoCheckbox.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/DuoCheckbox/DuoCheckbox.tsx @@ -1,6 +1,5 @@ import cn from 'classnames' import { useField } from 'formik' -import React from 'react' import strokeDuoIcon from 'icons/stroke-duo.svg' import { BaseCheckbox } from 'ui-kit/form/shared/BaseCheckbox/BaseCheckbox' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/OffersSynchronization/OffersSynchronization.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/OffersSynchronization/OffersSynchronization.tsx index f83324a1af8..a8725d259d0 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/OffersSynchronization/OffersSynchronization.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/OffersSynchronization/OffersSynchronization.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { GetVenueResponseModel, VenueProviderResponse } from 'apiClient/v1' import { useActiveFeature } from 'commons/hooks/useActiveFeature' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/StocksProviderForm/__specs__/StocksProviderForm.spec.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/StocksProviderForm/__specs__/StocksProviderForm.spec.tsx index 9bfc43720d5..02473deaff6 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/StocksProviderForm/__specs__/StocksProviderForm.spec.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/StocksProviderForm/__specs__/StocksProviderForm.spec.tsx @@ -1,6 +1,5 @@ import { screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import * as useAnalytics from 'app/App/analytics/firebase' import { SynchronizationEvents } from 'commons/core/FirebaseEvents/constants' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderForm.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderForm.tsx index 2bdabb82ccc..c6eee989660 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderForm.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderForm.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { api } from 'apiClient/api' import { getHumanReadableApiError } from 'apiClient/helpers' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/AllocineProviderEdit.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/AllocineProviderEdit.tsx index adbfe4beacf..7c28709904c 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/AllocineProviderEdit.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/AllocineProviderEdit.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useSWRConfig } from 'swr' import { api } from 'apiClient/api' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/CinemaProviderEdit.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/CinemaProviderEdit.tsx index 33553f43b7e..c24251f57f7 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/CinemaProviderEdit.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/CinemaProviderEdit.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useSWRConfig } from 'swr' import { api } from 'apiClient/api' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/DeleteVenueProviderButton.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/DeleteVenueProviderButton.tsx index a320b7e3a2d..ace010c80f5 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/DeleteVenueProviderButton.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/DeleteVenueProviderButton.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import { useState } from 'react' import { useSWRConfig } from 'swr' import { api } from 'apiClient/api' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/DeleteVenueProviderDialog.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/DeleteVenueProviderDialog.tsx index 55ad6da39a4..7693faa6417 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/DeleteVenueProviderDialog.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/DeleteVenueProviderDialog.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { ConfirmDialog } from 'components/ConfirmDialog/ConfirmDialog' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/ToggleVenueProviderStatusButton.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/ToggleVenueProviderStatusButton.tsx index c024488e288..bb233ebe827 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/ToggleVenueProviderStatusButton.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/ToggleVenueProviderStatusButton.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import { useState } from 'react' import { useSWRConfig } from 'swr' import { api } from 'apiClient/api' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/ToggleVenueProviderStatusDialog.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/ToggleVenueProviderStatusDialog.tsx index 41fc8cc9073..3d89ea9bc93 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/ToggleVenueProviderStatusDialog.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/ToggleVenueProviderStatusDialog.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { ConfirmDialog } from 'components/ConfirmDialog/ConfirmDialog' diff --git a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/VenueProviderCard.tsx b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/VenueProviderCard.tsx index e1933b4c4b4..d066b8e84d3 100644 --- a/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/VenueProviderCard.tsx +++ b/pro/src/pages/VenueSettings/VenueProvidersManager/VenueProviderList/VenueProviderCard.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { GetVenueResponseModel, VenueProviderResponse } from 'apiClient/v1' import { getProviderInfo } from 'commons/core/Providers/utils/getProviderInfo' diff --git a/pro/src/ui-kit/AccessibilityLabel/AccessibilityLabel.tsx b/pro/src/ui-kit/AccessibilityLabel/AccessibilityLabel.tsx index 18c066819cd..4ec52e35b18 100644 --- a/pro/src/ui-kit/AccessibilityLabel/AccessibilityLabel.tsx +++ b/pro/src/ui-kit/AccessibilityLabel/AccessibilityLabel.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { AccessibilityEnum } from 'commons/core/shared/types' import strokeAccessibilityBrain from 'icons/stroke-accessibility-brain.svg' diff --git a/pro/src/ui-kit/BoxFormLayout/BoxFormLayout.tsx b/pro/src/ui-kit/BoxFormLayout/BoxFormLayout.tsx index e21fd999f72..d3e716f82fb 100644 --- a/pro/src/ui-kit/BoxFormLayout/BoxFormLayout.tsx +++ b/pro/src/ui-kit/BoxFormLayout/BoxFormLayout.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import style from './BoxFormLayout.module.scss' import { Banner } from './components/BoxFormLayoutBanner' diff --git a/pro/src/ui-kit/BoxFormLayout/__specs__/BoxFormLayout.spec.tsx b/pro/src/ui-kit/BoxFormLayout/__specs__/BoxFormLayout.spec.tsx index 531688cd73a..884850e7b88 100644 --- a/pro/src/ui-kit/BoxFormLayout/__specs__/BoxFormLayout.spec.tsx +++ b/pro/src/ui-kit/BoxFormLayout/__specs__/BoxFormLayout.spec.tsx @@ -1,7 +1,6 @@ // react-testing-library doc: https://testing-library.com/docs/react-testing-library/api import { render, screen } from '@testing-library/react' -import React from 'react' import { BoxFormLayout } from '../BoxFormLayout' diff --git a/pro/src/ui-kit/BoxRounded/BoxRounded.tsx b/pro/src/ui-kit/BoxRounded/BoxRounded.tsx index 810cbf4bae0..57ec08256b7 100644 --- a/pro/src/ui-kit/BoxRounded/BoxRounded.tsx +++ b/pro/src/ui-kit/BoxRounded/BoxRounded.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import fullEditIcon from 'icons/full-edit.svg' import { Button } from 'ui-kit/Button/Button' diff --git a/pro/src/ui-kit/Button/__specs__/Button.spec.tsx b/pro/src/ui-kit/Button/__specs__/Button.spec.tsx index 5c55e423353..3b0b6b055c2 100644 --- a/pro/src/ui-kit/Button/__specs__/Button.spec.tsx +++ b/pro/src/ui-kit/Button/__specs__/Button.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { Button, ButtonProps } from '../Button' diff --git a/pro/src/ui-kit/Button/__specs__/ButtonLink.spec.tsx b/pro/src/ui-kit/Button/__specs__/ButtonLink.spec.tsx index 1114f5f89d8..05e439b6f68 100644 --- a/pro/src/ui-kit/Button/__specs__/ButtonLink.spec.tsx +++ b/pro/src/ui-kit/Button/__specs__/ButtonLink.spec.tsx @@ -1,6 +1,5 @@ import { render, screen, within } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/ui-kit/Callout/Callout.tsx b/pro/src/ui-kit/Callout/Callout.tsx index 9cd3e805d60..54f49b49c9c 100644 --- a/pro/src/ui-kit/Callout/Callout.tsx +++ b/pro/src/ui-kit/Callout/Callout.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import fullErrorIcon from 'icons/full-error.svg' import fullInfoIcon from 'icons/full-info.svg' diff --git a/pro/src/ui-kit/Divider/Divider.stories.tsx b/pro/src/ui-kit/Divider/Divider.stories.tsx index 5040a58b9dc..29053ccb630 100644 --- a/pro/src/ui-kit/Divider/Divider.stories.tsx +++ b/pro/src/ui-kit/Divider/Divider.stories.tsx @@ -1,5 +1,4 @@ import type { StoryObj } from '@storybook/react' -import React from 'react' import { Divider } from './Divider' diff --git a/pro/src/ui-kit/Divider/Divider.tsx b/pro/src/ui-kit/Divider/Divider.tsx index 27aa42db7ea..9b8e854b7f7 100644 --- a/pro/src/ui-kit/Divider/Divider.tsx +++ b/pro/src/ui-kit/Divider/Divider.tsx @@ -1,5 +1,5 @@ import classnames from 'classnames' -import React, { FC } from 'react' +import { FC } from 'react' import styles from './Divider.module.scss' diff --git a/pro/src/ui-kit/Hero/Hero.tsx b/pro/src/ui-kit/Hero/Hero.tsx index 01393912445..40254935d78 100644 --- a/pro/src/ui-kit/Hero/Hero.tsx +++ b/pro/src/ui-kit/Hero/Hero.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import { ButtonLink } from 'ui-kit/Button/ButtonLink' import { ButtonVariant } from 'ui-kit/Button/types' diff --git a/pro/src/ui-kit/Icons/SVGs/ShadowTipsHelpIcon.tsx b/pro/src/ui-kit/Icons/SVGs/ShadowTipsHelpIcon.tsx index 5e16ba0daba..ea8732e0ae7 100644 --- a/pro/src/ui-kit/Icons/SVGs/ShadowTipsHelpIcon.tsx +++ b/pro/src/ui-kit/Icons/SVGs/ShadowTipsHelpIcon.tsx @@ -1,4 +1,3 @@ -import React from 'react' type ShadowTipsHelpIconProps = { className?: string diff --git a/pro/src/ui-kit/InfoBox/InfoBox.stories.tsx b/pro/src/ui-kit/InfoBox/InfoBox.stories.tsx index 74cfa91740d..0527403f175 100644 --- a/pro/src/ui-kit/InfoBox/InfoBox.stories.tsx +++ b/pro/src/ui-kit/InfoBox/InfoBox.stories.tsx @@ -1,5 +1,4 @@ import type { StoryObj } from '@storybook/react' -import React from 'react' import { InfoBox } from './InfoBox' diff --git a/pro/src/ui-kit/LinkNodes/LinkNodes.tsx b/pro/src/ui-kit/LinkNodes/LinkNodes.tsx index 54880b34ce5..ac3c8e93253 100644 --- a/pro/src/ui-kit/LinkNodes/LinkNodes.tsx +++ b/pro/src/ui-kit/LinkNodes/LinkNodes.tsx @@ -1,4 +1,3 @@ -import React from 'react' import fullLinkIcon from 'icons/full-link.svg' import fullNextIcon from 'icons/full-next.svg' diff --git a/pro/src/ui-kit/LinkNodes/__specs__/LinkNodes.spec.tsx b/pro/src/ui-kit/LinkNodes/__specs__/LinkNodes.spec.tsx index a83f58b438d..664bbccbd39 100644 --- a/pro/src/ui-kit/LinkNodes/__specs__/LinkNodes.spec.tsx +++ b/pro/src/ui-kit/LinkNodes/__specs__/LinkNodes.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { renderWithProviders } from 'commons/utils/renderWithProviders' import fullMailIcon from 'icons/full-mail.svg' diff --git a/pro/src/ui-kit/ListIconButton/ListIconButton.stories.tsx b/pro/src/ui-kit/ListIconButton/ListIconButton.stories.tsx index 6f062f244ae..71923a552a9 100644 --- a/pro/src/ui-kit/ListIconButton/ListIconButton.stories.tsx +++ b/pro/src/ui-kit/ListIconButton/ListIconButton.stories.tsx @@ -1,5 +1,4 @@ import type { StoryObj } from '@storybook/react' -import React from 'react' import fullTrashIcon from 'icons/full-trash.svg' diff --git a/pro/src/ui-kit/NotificationToaster/NotificationToaster.tsx b/pro/src/ui-kit/NotificationToaster/NotificationToaster.tsx index 4d61f07e571..1e9aed4bb7a 100644 --- a/pro/src/ui-kit/NotificationToaster/NotificationToaster.tsx +++ b/pro/src/ui-kit/NotificationToaster/NotificationToaster.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { NotificationTypeEnum } from 'commons/hooks/useNotification' import fullErrorIcon from 'icons/full-error.svg' diff --git a/pro/src/ui-kit/Pagination/Pagination.tsx b/pro/src/ui-kit/Pagination/Pagination.tsx index e8c500bcb8e..03ca88842b0 100644 --- a/pro/src/ui-kit/Pagination/Pagination.tsx +++ b/pro/src/ui-kit/Pagination/Pagination.tsx @@ -1,5 +1,3 @@ -import React from 'react' - import strokeLeftIcon from 'icons/stroke-left.svg' import strokeRightIcon from 'icons/stroke-right.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/ui-kit/Pagination/__specs__/Pagination.spec.tsx b/pro/src/ui-kit/Pagination/__specs__/Pagination.spec.tsx index cafb022df4e..8f1d0e0c5f7 100644 --- a/pro/src/ui-kit/Pagination/__specs__/Pagination.spec.tsx +++ b/pro/src/ui-kit/Pagination/__specs__/Pagination.spec.tsx @@ -1,6 +1,5 @@ import { render, screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Pagination, PaginationProps } from '../Pagination' diff --git a/pro/src/ui-kit/RadioButtonWithImage/RadioButtonWithImage.stories.tsx b/pro/src/ui-kit/RadioButtonWithImage/RadioButtonWithImage.stories.tsx index c5b1752b26d..ff9b3b921d6 100644 --- a/pro/src/ui-kit/RadioButtonWithImage/RadioButtonWithImage.stories.tsx +++ b/pro/src/ui-kit/RadioButtonWithImage/RadioButtonWithImage.stories.tsx @@ -1,5 +1,4 @@ import type { StoryObj } from '@storybook/react' -import React from 'react' import strokeProfIcon from 'icons/stroke-prof.svg' diff --git a/pro/src/ui-kit/RadioButtonWithImage/RadioButtonWithImage.tsx b/pro/src/ui-kit/RadioButtonWithImage/RadioButtonWithImage.tsx index 072f0589b90..1b0feb27e25 100644 --- a/pro/src/ui-kit/RadioButtonWithImage/RadioButtonWithImage.tsx +++ b/pro/src/ui-kit/RadioButtonWithImage/RadioButtonWithImage.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/ui-kit/SvgIcon/SvgIcon.tsx b/pro/src/ui-kit/SvgIcon/SvgIcon.tsx index 38cd74e0792..b3edc8fa64e 100644 --- a/pro/src/ui-kit/SvgIcon/SvgIcon.tsx +++ b/pro/src/ui-kit/SvgIcon/SvgIcon.tsx @@ -1,4 +1,3 @@ -import React from 'react' /** * Props for the SvgIcon component. diff --git a/pro/src/ui-kit/Tabs/Tabs.tsx b/pro/src/ui-kit/Tabs/Tabs.tsx index 4ea02a4cd9a..5dfe7777fd6 100644 --- a/pro/src/ui-kit/Tabs/Tabs.tsx +++ b/pro/src/ui-kit/Tabs/Tabs.tsx @@ -1,6 +1,5 @@ import * as TabsPrimitive from '@radix-ui/react-tabs' import cn from 'classnames' -import React from 'react' import { Link } from 'react-router-dom' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/ui-kit/Tabs/__specs__/Tabs.spec.tsx b/pro/src/ui-kit/Tabs/__specs__/Tabs.spec.tsx index cd23cea2aa2..16dbfeb9e70 100644 --- a/pro/src/ui-kit/Tabs/__specs__/Tabs.spec.tsx +++ b/pro/src/ui-kit/Tabs/__specs__/Tabs.spec.tsx @@ -1,5 +1,4 @@ import { screen } from '@testing-library/react' -import React from 'react' import { Route, Routes } from 'react-router-dom' import { renderWithProviders } from 'commons/utils/renderWithProviders' diff --git a/pro/src/ui-kit/Tag/Tag.tsx b/pro/src/ui-kit/Tag/Tag.tsx index 25af55380fa..1ba702855fc 100644 --- a/pro/src/ui-kit/Tag/Tag.tsx +++ b/pro/src/ui-kit/Tag/Tag.tsx @@ -1,5 +1,5 @@ import cx from 'classnames' -import React, { ReactNode } from 'react' +import { ReactNode } from 'react' import styles from './Tag.module.scss' diff --git a/pro/src/ui-kit/Tag/__specs__/Tag.spec.tsx b/pro/src/ui-kit/Tag/__specs__/Tag.spec.tsx index baf259e8a96..2f6bb5ea774 100644 --- a/pro/src/ui-kit/Tag/__specs__/Tag.spec.tsx +++ b/pro/src/ui-kit/Tag/__specs__/Tag.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { Tag, TagVariant } from '../Tag' diff --git a/pro/src/ui-kit/Thumb/Thumb.tsx b/pro/src/ui-kit/Thumb/Thumb.tsx index 1bf1851b4ce..edcdc0ea5af 100644 --- a/pro/src/ui-kit/Thumb/Thumb.tsx +++ b/pro/src/ui-kit/Thumb/Thumb.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import strokeOfferIcon from 'icons/stroke-offer.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/ui-kit/Timeline/Timeline.tsx b/pro/src/ui-kit/Timeline/Timeline.tsx index 6eb27a3e047..a09f9df27fb 100644 --- a/pro/src/ui-kit/Timeline/Timeline.tsx +++ b/pro/src/ui-kit/Timeline/Timeline.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { ReactNode } from 'react' +import { ReactNode } from 'react' import fullClearIcon from 'icons/full-clear.svg' import fullValidateIcon from 'icons/full-validate.svg' diff --git a/pro/src/ui-kit/Timeline/__specs__/Timeline.spec.tsx b/pro/src/ui-kit/Timeline/__specs__/Timeline.spec.tsx index 73b74f3e148..c4d081df23d 100644 --- a/pro/src/ui-kit/Timeline/__specs__/Timeline.spec.tsx +++ b/pro/src/ui-kit/Timeline/__specs__/Timeline.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { Timeline, TimelineStepType } from '../Timeline' diff --git a/pro/src/ui-kit/Toggle/Toggle.tsx b/pro/src/ui-kit/Toggle/Toggle.tsx index 77c7d9ea279..47f380195e9 100644 --- a/pro/src/ui-kit/Toggle/Toggle.tsx +++ b/pro/src/ui-kit/Toggle/Toggle.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { useCallback, useEffect, useState } from 'react' +import { useCallback, useEffect, useState } from 'react' import styles from './Toggle.module.scss' diff --git a/pro/src/ui-kit/Toggle/__specs__/Toggle.spec.tsx b/pro/src/ui-kit/Toggle/__specs__/Toggle.spec.tsx index 161d511dc05..dbcf42e4bfb 100644 --- a/pro/src/ui-kit/Toggle/__specs__/Toggle.spec.tsx +++ b/pro/src/ui-kit/Toggle/__specs__/Toggle.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { Toggle, ToggleProps } from '../Toggle' diff --git a/pro/src/ui-kit/Tooltip/Tooltip.stories.tsx b/pro/src/ui-kit/Tooltip/Tooltip.stories.tsx index 0fb5f2841e6..1818df702ce 100644 --- a/pro/src/ui-kit/Tooltip/Tooltip.stories.tsx +++ b/pro/src/ui-kit/Tooltip/Tooltip.stories.tsx @@ -1,5 +1,4 @@ import type { StoryObj } from '@storybook/react' -import React from 'react' import { Tooltip } from './Tooltip' diff --git a/pro/src/ui-kit/Tooltip/Tooltip.tsx b/pro/src/ui-kit/Tooltip/Tooltip.tsx index 59de6f68d04..aa783c6583b 100644 --- a/pro/src/ui-kit/Tooltip/Tooltip.tsx +++ b/pro/src/ui-kit/Tooltip/Tooltip.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { ReactNode } from 'react' +import { ReactNode } from 'react' import styles from './Tooltip.module.scss' diff --git a/pro/src/ui-kit/Tooltip/__specs__/Tooltip.spec.tsx b/pro/src/ui-kit/Tooltip/__specs__/Tooltip.spec.tsx index 398b056f8a7..41f1915c828 100644 --- a/pro/src/ui-kit/Tooltip/__specs__/Tooltip.spec.tsx +++ b/pro/src/ui-kit/Tooltip/__specs__/Tooltip.spec.tsx @@ -1,5 +1,4 @@ import { render, screen } from '@testing-library/react' -import React from 'react' import { Tooltip } from '../Tooltip' diff --git a/pro/src/ui-kit/form/AdageMultiselect/AdageMultiselect.stories.tsx b/pro/src/ui-kit/form/AdageMultiselect/AdageMultiselect.stories.tsx index 65442077898..62f3f61efbc 100644 --- a/pro/src/ui-kit/form/AdageMultiselect/AdageMultiselect.stories.tsx +++ b/pro/src/ui-kit/form/AdageMultiselect/AdageMultiselect.stories.tsx @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { AdageMultiselect } from './AdageMultiselect' diff --git a/pro/src/ui-kit/form/AdageMultiselect/AdageMultiselect.tsx b/pro/src/ui-kit/form/AdageMultiselect/AdageMultiselect.tsx index ac175b238ca..f15feadeab9 100644 --- a/pro/src/ui-kit/form/AdageMultiselect/AdageMultiselect.tsx +++ b/pro/src/ui-kit/form/AdageMultiselect/AdageMultiselect.tsx @@ -174,6 +174,7 @@ export const AdageMultiselect = ({ {filterItems(sortedOptions, inputValue).map((item, index) => { // we cannot pass down the ref to basecheckbox as it is a function component + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { ref, ...itemProps } = getItemProps({ item, index }) const liValueKey = Array.isArray(item.value) ? item.value.join('_') diff --git a/pro/src/ui-kit/form/AdageMultiselect/__specs__/AdageMultiselect.spec.tsx b/pro/src/ui-kit/form/AdageMultiselect/__specs__/AdageMultiselect.spec.tsx index e459e4919d2..3c2299e5f67 100644 --- a/pro/src/ui-kit/form/AdageMultiselect/__specs__/AdageMultiselect.spec.tsx +++ b/pro/src/ui-kit/form/AdageMultiselect/__specs__/AdageMultiselect.spec.tsx @@ -1,7 +1,6 @@ import { render, screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Formik } from 'formik' -import React from 'react' import { AdageMultiselect } from '../AdageMultiselect' diff --git a/pro/src/ui-kit/form/Checkbox/Checkbox.stories.tsx b/pro/src/ui-kit/form/Checkbox/Checkbox.stories.tsx index d4ffca1831c..60ef13f02fa 100644 --- a/pro/src/ui-kit/form/Checkbox/Checkbox.stories.tsx +++ b/pro/src/ui-kit/form/Checkbox/Checkbox.stories.tsx @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { Checkbox } from './Checkbox' diff --git a/pro/src/ui-kit/form/Checkbox/Checkbox.tsx b/pro/src/ui-kit/form/Checkbox/Checkbox.tsx index 93b45e4a993..b7ea34d849e 100644 --- a/pro/src/ui-kit/form/Checkbox/Checkbox.tsx +++ b/pro/src/ui-kit/form/Checkbox/Checkbox.tsx @@ -1,6 +1,6 @@ import cn from 'classnames' import { useField } from 'formik' -import React, { ForwardedRef } from 'react' +import { ForwardedRef } from 'react' import { BaseCheckbox, diff --git a/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroup.stories.tsx b/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroup.stories.tsx index 72d22f8f52a..12448ce75b3 100644 --- a/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroup.stories.tsx +++ b/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroup.stories.tsx @@ -1,5 +1,4 @@ import { Formik } from 'formik' -import React from 'react' import { CheckboxGroup } from './CheckboxGroup' diff --git a/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroup.tsx b/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroup.tsx index 288cda515e3..bd59ecf5a81 100644 --- a/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroup.tsx +++ b/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroup.tsx @@ -1,6 +1,5 @@ import cn from 'classnames' import { useField } from 'formik' -import React from 'react' import { FieldSetLayout } from '../shared/FieldSetLayout/FieldSetLayout' diff --git a/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroupItem.tsx b/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroupItem.tsx index f6b00808672..0aa7734c9e8 100644 --- a/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroupItem.tsx +++ b/pro/src/ui-kit/form/CheckboxGroup/CheckboxGroupItem.tsx @@ -1,5 +1,4 @@ import { useField } from 'formik' -import React from 'react' import { BaseCheckbox } from 'ui-kit/form/shared/BaseCheckbox/BaseCheckbox' diff --git a/pro/src/ui-kit/form/DatePicker/BaseDatePicker.tsx b/pro/src/ui-kit/form/DatePicker/BaseDatePicker.tsx index 6b2e70d8116..5cf59bf7a19 100644 --- a/pro/src/ui-kit/form/DatePicker/BaseDatePicker.tsx +++ b/pro/src/ui-kit/form/DatePicker/BaseDatePicker.tsx @@ -1,6 +1,5 @@ import cn from 'classnames' import { format } from 'date-fns' -import React from 'react' import { FORMAT_ISO_DATE_ONLY, isDateValid } from 'commons/utils/date' diff --git a/pro/src/ui-kit/form/DatePicker/DatePicker.stories.tsx b/pro/src/ui-kit/form/DatePicker/DatePicker.stories.tsx index 77a2b2c7655..d6b85bf3c37 100644 --- a/pro/src/ui-kit/form/DatePicker/DatePicker.stories.tsx +++ b/pro/src/ui-kit/form/DatePicker/DatePicker.stories.tsx @@ -1,5 +1,4 @@ import { Formik } from 'formik' -import React from 'react' import { DatePicker } from './DatePicker' diff --git a/pro/src/ui-kit/form/EmailSpellCheckInput/EmailSpellCheckInput.stories.tsx b/pro/src/ui-kit/form/EmailSpellCheckInput/EmailSpellCheckInput.stories.tsx index 4a94baf81f2..62ddb158e31 100644 --- a/pro/src/ui-kit/form/EmailSpellCheckInput/EmailSpellCheckInput.stories.tsx +++ b/pro/src/ui-kit/form/EmailSpellCheckInput/EmailSpellCheckInput.stories.tsx @@ -1,5 +1,4 @@ import { Formik } from 'formik' -import React from 'react' import { EmailSpellCheckInput } from './EmailSpellCheckInput' diff --git a/pro/src/ui-kit/form/EmailSpellCheckInput/EmailSpellCheckInput.tsx b/pro/src/ui-kit/form/EmailSpellCheckInput/EmailSpellCheckInput.tsx index fca36f83b5b..af99c95a0e9 100644 --- a/pro/src/ui-kit/form/EmailSpellCheckInput/EmailSpellCheckInput.tsx +++ b/pro/src/ui-kit/form/EmailSpellCheckInput/EmailSpellCheckInput.tsx @@ -1,5 +1,5 @@ import { useField, useFormikContext } from 'formik' -import React, { useState } from 'react' +import { useState } from 'react' import fullNextIcon from 'icons/full-next.svg' import { Button } from 'ui-kit/Button/Button' diff --git a/pro/src/ui-kit/form/EmailSpellCheckInput/__specs__/EmailSpellCheckInput.spec.tsx b/pro/src/ui-kit/form/EmailSpellCheckInput/__specs__/EmailSpellCheckInput.spec.tsx index 1fa8b9aeea1..07cab39dc15 100644 --- a/pro/src/ui-kit/form/EmailSpellCheckInput/__specs__/EmailSpellCheckInput.spec.tsx +++ b/pro/src/ui-kit/form/EmailSpellCheckInput/__specs__/EmailSpellCheckInput.spec.tsx @@ -1,7 +1,6 @@ import { render, screen, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Formik } from 'formik' -import React from 'react' import * as yup from 'yup' import { emailSchema } from 'commons/utils/isValidEmail' diff --git a/pro/src/ui-kit/form/IconRadioGroup/IconRadio/IconRadio.tsx b/pro/src/ui-kit/form/IconRadioGroup/IconRadio/IconRadio.tsx index 86fdbee30fa..39f596f9104 100644 --- a/pro/src/ui-kit/form/IconRadioGroup/IconRadio/IconRadio.tsx +++ b/pro/src/ui-kit/form/IconRadioGroup/IconRadio/IconRadio.tsx @@ -14,9 +14,6 @@ interface IconRadioProps icon: string | JSX.Element hasError?: boolean className?: string - withBorder?: boolean - fullWidth?: boolean - ariaDescribedBy?: string } export const IconRadio = ({ @@ -26,9 +23,6 @@ export const IconRadio = ({ icon, hasError, className, - withBorder = false, - fullWidth = false, - ariaDescribedBy, ...props }: IconRadioProps): JSX.Element => { const id = useId() diff --git a/pro/src/ui-kit/form/IconRadioGroup/IconRadioGroup.tsx b/pro/src/ui-kit/form/IconRadioGroup/IconRadioGroup.tsx index 8fe2efe2728..321abedd2ab 100644 --- a/pro/src/ui-kit/form/IconRadioGroup/IconRadioGroup.tsx +++ b/pro/src/ui-kit/form/IconRadioGroup/IconRadioGroup.tsx @@ -1,5 +1,4 @@ import { useField } from 'formik' -import React from 'react' import { IconRadio } from 'ui-kit/form/IconRadioGroup/IconRadio/IconRadio' import { FieldError } from 'ui-kit/form/shared/FieldError/FieldError' @@ -58,7 +57,7 @@ export const IconRadioGroup = ({ label={item.label} value={item.value} hasError={hasError} - {...(hasError ? { ariaDescribedBy: `error-${name}` } : {})} + {...(hasError ? { 'aria-describedby': `error-${name}` } : {})} /> ))}
{children}
diff --git a/pro/src/ui-kit/form/PasswordInput/ValidationMessageList/ValidationMessageList.tsx b/pro/src/ui-kit/form/PasswordInput/ValidationMessageList/ValidationMessageList.tsx index 7cecc2fdbc5..26bb411778f 100644 --- a/pro/src/ui-kit/form/PasswordInput/ValidationMessageList/ValidationMessageList.tsx +++ b/pro/src/ui-kit/form/PasswordInput/ValidationMessageList/ValidationMessageList.tsx @@ -1,5 +1,5 @@ import { useField } from 'formik' -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { getPasswordRuleLabel, diff --git a/pro/src/ui-kit/form/PeriodSelector/PeriodSelector.tsx b/pro/src/ui-kit/form/PeriodSelector/PeriodSelector.tsx index a0c195fe5b1..e92949a3617 100644 --- a/pro/src/ui-kit/form/PeriodSelector/PeriodSelector.tsx +++ b/pro/src/ui-kit/form/PeriodSelector/PeriodSelector.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { BaseDatePicker } from 'ui-kit/form/DatePicker/BaseDatePicker' diff --git a/pro/src/ui-kit/form/PeriodSelector/__specs__/PeriodSelector.spec.tsx b/pro/src/ui-kit/form/PeriodSelector/__specs__/PeriodSelector.spec.tsx index 8970b33b334..c6e8a69bd7c 100644 --- a/pro/src/ui-kit/form/PeriodSelector/__specs__/PeriodSelector.spec.tsx +++ b/pro/src/ui-kit/form/PeriodSelector/__specs__/PeriodSelector.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' -import React from 'react' import { PeriodSelector } from '../PeriodSelector' diff --git a/pro/src/ui-kit/form/PhoneNumberInput/CodeCountrySelect/CountryCodeSelect.tsx b/pro/src/ui-kit/form/PhoneNumberInput/CodeCountrySelect/CountryCodeSelect.tsx index 6d93c8ba7f4..baaa038aa3e 100644 --- a/pro/src/ui-kit/form/PhoneNumberInput/CodeCountrySelect/CountryCodeSelect.tsx +++ b/pro/src/ui-kit/form/PhoneNumberInput/CodeCountrySelect/CountryCodeSelect.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { ChangeEvent } from 'react' +import { ChangeEvent } from 'react' import fullRightIcon from 'icons/full-right.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/ui-kit/form/PhoneNumberInput/PhoneNumberInput.tsx b/pro/src/ui-kit/form/PhoneNumberInput/PhoneNumberInput.tsx index bb55d8db3bd..fb3d895a45e 100644 --- a/pro/src/ui-kit/form/PhoneNumberInput/PhoneNumberInput.tsx +++ b/pro/src/ui-kit/form/PhoneNumberInput/PhoneNumberInput.tsx @@ -1,7 +1,7 @@ import { useField } from 'formik' import { parsePhoneNumberFromString } from 'libphonenumber-js' import type { CountryCode } from 'libphonenumber-js' -import React, { ChangeEvent, FocusEvent, useEffect, useState } from 'react' +import { ChangeEvent, FocusEvent, useEffect, useState } from 'react' import { BaseInput } from '../shared/BaseInput/BaseInput' import { FieldError } from '../shared/FieldError/FieldError' diff --git a/pro/src/ui-kit/form/PhoneNumberInput/__specs__/PhoneNumberInput.spec.tsx b/pro/src/ui-kit/form/PhoneNumberInput/__specs__/PhoneNumberInput.spec.tsx index 759d388de87..d362c6921c1 100644 --- a/pro/src/ui-kit/form/PhoneNumberInput/__specs__/PhoneNumberInput.spec.tsx +++ b/pro/src/ui-kit/form/PhoneNumberInput/__specs__/PhoneNumberInput.spec.tsx @@ -2,7 +2,6 @@ import { render, screen } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Formik } from 'formik' import { parsePhoneNumberFromString } from 'libphonenumber-js' -import React from 'react' import { PHONE_CODE_COUNTRY_CODE_OPTIONS, PLACEHOLDER_MAP } from '../constants' import { PhoneNumberInput } from '../PhoneNumberInput' diff --git a/pro/src/ui-kit/form/QuantityInput/QuantityInput.stories.tsx b/pro/src/ui-kit/form/QuantityInput/QuantityInput.stories.tsx index c7a64f34bf2..a477950282d 100644 --- a/pro/src/ui-kit/form/QuantityInput/QuantityInput.stories.tsx +++ b/pro/src/ui-kit/form/QuantityInput/QuantityInput.stories.tsx @@ -1,6 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { QuantityInput } from './QuantityInput' diff --git a/pro/src/ui-kit/form/Select/Select.stories.tsx b/pro/src/ui-kit/form/Select/Select.stories.tsx index cbfd345b837..33404a75377 100644 --- a/pro/src/ui-kit/form/Select/Select.stories.tsx +++ b/pro/src/ui-kit/form/Select/Select.stories.tsx @@ -1,6 +1,5 @@ import { StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { Select } from './Select' diff --git a/pro/src/ui-kit/form/Select/SelectInput.stories.tsx b/pro/src/ui-kit/form/Select/SelectInput.stories.tsx index 3888af58132..08670cfce29 100644 --- a/pro/src/ui-kit/form/Select/SelectInput.stories.tsx +++ b/pro/src/ui-kit/form/Select/SelectInput.stories.tsx @@ -1,6 +1,5 @@ import { StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { SelectInput } from './SelectInput' diff --git a/pro/src/ui-kit/form/Select/SelectInput.tsx b/pro/src/ui-kit/form/Select/SelectInput.tsx index c6374273c94..fcbbd7a3f2f 100644 --- a/pro/src/ui-kit/form/Select/SelectInput.tsx +++ b/pro/src/ui-kit/form/Select/SelectInput.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { ComponentProps } from 'react' +import { ComponentProps } from 'react' import { SelectOption } from 'commons/custom_types/form' import strokeDownIcon from 'icons/stroke-down.svg' diff --git a/pro/src/ui-kit/form/SelectAutoComplete/OptionsList/OptionsList.tsx b/pro/src/ui-kit/form/SelectAutoComplete/OptionsList/OptionsList.tsx index d7936ec0a59..7b7344d89a9 100644 --- a/pro/src/ui-kit/form/SelectAutoComplete/OptionsList/OptionsList.tsx +++ b/pro/src/ui-kit/form/SelectAutoComplete/OptionsList/OptionsList.tsx @@ -4,7 +4,6 @@ import { Ref } from 'react' import { SelectOption } from 'commons/custom_types/form' import { pluralize } from 'commons/utils/pluralize' import { BaseCheckbox } from 'ui-kit/form/shared/BaseCheckbox/BaseCheckbox' -import baseCheckboxStyles from 'ui-kit/form/shared/BaseCheckbox/BaseCheckbox.module.scss' import styles from './OptionsList.module.scss' diff --git a/pro/src/ui-kit/form/SelectAutoComplete/SelectAutocomplete.stories.tsx b/pro/src/ui-kit/form/SelectAutoComplete/SelectAutocomplete.stories.tsx index 1ed02708c0f..f9b05f4eb5f 100644 --- a/pro/src/ui-kit/form/SelectAutoComplete/SelectAutocomplete.stories.tsx +++ b/pro/src/ui-kit/form/SelectAutoComplete/SelectAutocomplete.stories.tsx @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { searchPatternInOptions } from 'commons/utils/searchPatternInOptions' diff --git a/pro/src/ui-kit/form/SelectAutoComplete/SelectAutocomplete.tsx b/pro/src/ui-kit/form/SelectAutoComplete/SelectAutocomplete.tsx index 959cad84b25..130cead7247 100644 --- a/pro/src/ui-kit/form/SelectAutoComplete/SelectAutocomplete.tsx +++ b/pro/src/ui-kit/form/SelectAutoComplete/SelectAutocomplete.tsx @@ -1,7 +1,6 @@ import cx from 'classnames' import { useField, useFormikContext } from 'formik' import { - ForwardedRef, KeyboardEventHandler, useEffect, useRef, diff --git a/pro/src/ui-kit/form/SelectAutoComplete/Toggle/Toggle.tsx b/pro/src/ui-kit/form/SelectAutoComplete/Toggle/Toggle.tsx index 0a03d0ba9f5..81367bb1a54 100644 --- a/pro/src/ui-kit/form/SelectAutoComplete/Toggle/Toggle.tsx +++ b/pro/src/ui-kit/form/SelectAutoComplete/Toggle/Toggle.tsx @@ -1,4 +1,3 @@ -import React from 'react' import strokeDownIcon from 'icons/stroke-down.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/ui-kit/form/SelectAutoComplete/__specs__/SelectAutocomplete.spec.tsx b/pro/src/ui-kit/form/SelectAutoComplete/__specs__/SelectAutocomplete.spec.tsx index 0a2a73e001c..5da5f73a2bd 100644 --- a/pro/src/ui-kit/form/SelectAutoComplete/__specs__/SelectAutocomplete.spec.tsx +++ b/pro/src/ui-kit/form/SelectAutoComplete/__specs__/SelectAutocomplete.spec.tsx @@ -7,7 +7,6 @@ import { } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' import { Formik } from 'formik' -import React from 'react' import * as yup from 'yup' import { searchPatternInOptions } from 'commons/utils/searchPatternInOptions' diff --git a/pro/src/ui-kit/form/Slider/Slider.stories.tsx b/pro/src/ui-kit/form/Slider/Slider.stories.tsx index ff5685dad36..dfbe8c1f5d0 100644 --- a/pro/src/ui-kit/form/Slider/Slider.stories.tsx +++ b/pro/src/ui-kit/form/Slider/Slider.stories.tsx @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { Slider } from './Slider' diff --git a/pro/src/ui-kit/form/Slider/Slider.tsx b/pro/src/ui-kit/form/Slider/Slider.tsx index fc3030cd35c..bf2ffc559c8 100644 --- a/pro/src/ui-kit/form/Slider/Slider.tsx +++ b/pro/src/ui-kit/form/Slider/Slider.tsx @@ -1,5 +1,4 @@ import { useField } from 'formik' -import React from 'react' import styles from './Slider.module.scss' diff --git a/pro/src/ui-kit/form/Slider/__specs__/Slider.spec.tsx b/pro/src/ui-kit/form/Slider/__specs__/Slider.spec.tsx index 807ac6cf4b8..060045fb858 100644 --- a/pro/src/ui-kit/form/Slider/__specs__/Slider.spec.tsx +++ b/pro/src/ui-kit/form/Slider/__specs__/Slider.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { Formik } from 'formik' -import React from 'react' import { Slider, SliderProps } from '../Slider' diff --git a/pro/src/ui-kit/form/TextArea/TextArea.stories.tsx b/pro/src/ui-kit/form/TextArea/TextArea.stories.tsx index 9f695e5235c..f01e53d0819 100644 --- a/pro/src/ui-kit/form/TextArea/TextArea.stories.tsx +++ b/pro/src/ui-kit/form/TextArea/TextArea.stories.tsx @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { TextArea } from './TextArea' diff --git a/pro/src/ui-kit/form/TextInput/TextInput.stories.tsx b/pro/src/ui-kit/form/TextInput/TextInput.stories.tsx index f54857640f2..8e933f85889 100644 --- a/pro/src/ui-kit/form/TextInput/TextInput.stories.tsx +++ b/pro/src/ui-kit/form/TextInput/TextInput.stories.tsx @@ -1,6 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react' import { Formik } from 'formik' -import React from 'react' import { TextInput } from './TextInput' diff --git a/pro/src/ui-kit/form/TimePicker/BaseTimePicker.tsx b/pro/src/ui-kit/form/TimePicker/BaseTimePicker.tsx index 0f6f074ef3b..832c0a70dd3 100644 --- a/pro/src/ui-kit/form/TimePicker/BaseTimePicker.tsx +++ b/pro/src/ui-kit/form/TimePicker/BaseTimePicker.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { useId } from 'react' +import { useId } from 'react' import { isValidTime } from 'commons/utils/timezone' diff --git a/pro/src/ui-kit/form/TimePicker/TimePicker.tsx b/pro/src/ui-kit/form/TimePicker/TimePicker.tsx index 8184d4a6d58..4744d40536b 100644 --- a/pro/src/ui-kit/form/TimePicker/TimePicker.tsx +++ b/pro/src/ui-kit/form/TimePicker/TimePicker.tsx @@ -1,5 +1,4 @@ import { useField } from 'formik' -import React from 'react' import { FieldLayout, diff --git a/pro/src/ui-kit/form/TimePicker/__specs__/BaseTimePicker.spec.tsx b/pro/src/ui-kit/form/TimePicker/__specs__/BaseTimePicker.spec.tsx index 81a05de3710..a365b94d956 100644 --- a/pro/src/ui-kit/form/TimePicker/__specs__/BaseTimePicker.spec.tsx +++ b/pro/src/ui-kit/form/TimePicker/__specs__/BaseTimePicker.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { Formik } from 'formik' -import React from 'react' import { BaseTimePicker } from '../BaseTimePicker' import { SuggestedTimeList } from '../types' diff --git a/pro/src/ui-kit/form/TimePicker/__specs__/TimePicker.spec.tsx b/pro/src/ui-kit/form/TimePicker/__specs__/TimePicker.spec.tsx index da3ceacb687..187ec312814 100644 --- a/pro/src/ui-kit/form/TimePicker/__specs__/TimePicker.spec.tsx +++ b/pro/src/ui-kit/form/TimePicker/__specs__/TimePicker.spec.tsx @@ -1,6 +1,5 @@ import { render, screen } from '@testing-library/react' import { Formik } from 'formik' -import React from 'react' import { TimePicker } from '../TimePicker' import { SuggestedTimeList } from '../types' diff --git a/pro/src/ui-kit/form/shared/BaseFileInput/BaseFileInput.tsx b/pro/src/ui-kit/form/shared/BaseFileInput/BaseFileInput.tsx index 88c56d4ff1c..387ee889c78 100644 --- a/pro/src/ui-kit/form/shared/BaseFileInput/BaseFileInput.tsx +++ b/pro/src/ui-kit/form/shared/BaseFileInput/BaseFileInput.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import buttonStyle from 'ui-kit/Button/Button.module.scss' diff --git a/pro/src/ui-kit/form/shared/FieldError/FieldError.stories.tsx b/pro/src/ui-kit/form/shared/FieldError/FieldError.stories.tsx index 85457a60e88..6c95888ffbf 100644 --- a/pro/src/ui-kit/form/shared/FieldError/FieldError.stories.tsx +++ b/pro/src/ui-kit/form/shared/FieldError/FieldError.stories.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { FieldError } from './FieldError' diff --git a/pro/src/ui-kit/form/shared/FieldError/FieldError.tsx b/pro/src/ui-kit/form/shared/FieldError/FieldError.tsx index 342844c84af..a76e1d6372c 100644 --- a/pro/src/ui-kit/form/shared/FieldError/FieldError.tsx +++ b/pro/src/ui-kit/form/shared/FieldError/FieldError.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import strokeErrorIcon from 'icons/stroke-error.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon' diff --git a/pro/src/ui-kit/form/shared/FieldLayout/FieldLayout.stories.tsx b/pro/src/ui-kit/form/shared/FieldLayout/FieldLayout.stories.tsx index 32d99c6830f..66cca1e5f2f 100644 --- a/pro/src/ui-kit/form/shared/FieldLayout/FieldLayout.stories.tsx +++ b/pro/src/ui-kit/form/shared/FieldLayout/FieldLayout.stories.tsx @@ -1,5 +1,4 @@ import type { StoryObj } from '@storybook/react' -import React from 'react' import { BaseInput } from '../BaseInput/BaseInput' diff --git a/pro/src/ui-kit/form/shared/FieldSetLayout/FieldSetLayout.tsx b/pro/src/ui-kit/form/shared/FieldSetLayout/FieldSetLayout.tsx index 460dfc589e9..5ecf57f3d76 100644 --- a/pro/src/ui-kit/form/shared/FieldSetLayout/FieldSetLayout.tsx +++ b/pro/src/ui-kit/form/shared/FieldSetLayout/FieldSetLayout.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import { FieldError } from '../FieldError/FieldError' diff --git a/pro/src/ui-kit/form/shared/FieldSuccess/FieldSuccess.stories.tsx b/pro/src/ui-kit/form/shared/FieldSuccess/FieldSuccess.stories.tsx index 1c647830dfc..a8470d7b9ad 100644 --- a/pro/src/ui-kit/form/shared/FieldSuccess/FieldSuccess.stories.tsx +++ b/pro/src/ui-kit/form/shared/FieldSuccess/FieldSuccess.stories.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { FieldSuccess } from './FieldSuccess' diff --git a/pro/src/ui-kit/form/shared/FieldSuccess/FieldSuccess.tsx b/pro/src/ui-kit/form/shared/FieldSuccess/FieldSuccess.tsx index 2dd05d6a941..565be567163 100644 --- a/pro/src/ui-kit/form/shared/FieldSuccess/FieldSuccess.tsx +++ b/pro/src/ui-kit/form/shared/FieldSuccess/FieldSuccess.tsx @@ -1,5 +1,4 @@ import cn from 'classnames' -import React from 'react' import strokeValidIcon from 'icons/stroke-valid.svg' import { SvgIcon } from 'ui-kit/SvgIcon/SvgIcon'