Skip to content
Snippets Groups Projects

feat: add reactions details on map + interactive layer improvements

48 files
+ 1143
47
Compare changes
  • Side-by-side
  • Inline
Files
48
/* eslint-disable no-magic-numbers */
/* eslint-disable no-magic-numbers */
import { drugsFixture } from '@/models/fixtures/drugFixtures';
import { chemicalsFixture } from '@/models/fixtures/chemicalsFixture';
import { chemicalsFixture } from '@/models/fixtures/chemicalsFixture';
 
import { drugsFixture } from '@/models/fixtures/drugFixtures';
import { StoreType } from '@/redux/store';
import { StoreType } from '@/redux/store';
import {
import {
InitialStoreState,
InitialStoreState,
getReduxWrapperWithStore,
getReduxWrapperWithStore,
} from '@/utils/testing/getReduxWrapperWithStore';
} from '@/utils/testing/getReduxWrapperWithStore';
import { render, screen } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import { PinItem, PinType } from '../PinsList/PinsList.types';
import { PinItem, PinTypeWithNone } from '../PinsList/PinsList.types';
import { AccordionsDetails } from './AccordionsDetails.component';
import { AccordionsDetails } from './AccordionsDetails.component';
const DRUGS_PINS_LIST = drugsFixture.map(drug => ({
const DRUGS_PINS_LIST = drugsFixture.map(drug => ({
@@ -24,7 +24,7 @@ const CHEMICALS_PINS_LIST = chemicalsFixture.map(chemical => ({
@@ -24,7 +24,7 @@ const CHEMICALS_PINS_LIST = chemicalsFixture.map(chemical => ({
const renderComponent = (
const renderComponent = (
pinsList: PinItem[],
pinsList: PinItem[],
type: PinType,
type: PinTypeWithNone,
initialStoreState: InitialStoreState = {},
initialStoreState: InitialStoreState = {},
): { store: StoreType } => {
): { store: StoreType } => {
const { Wrapper, store } = getReduxWrapperWithStore(initialStoreState);
const { Wrapper, store } = getReduxWrapperWithStore(initialStoreState);
Loading