Skip to content

Commit

Permalink
fix preprocessor error
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Chaillet committed Jan 20, 2025
1 parent 6557c99 commit 4c3bc28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import TimelineItem, { TimelineLabelProps } from '.';
import TimelineLabel, { TimelineLabelProps } from '.';

test('TimelineLabel renders as expected', () => {
// Arrange
Expand All @@ -15,7 +15,7 @@ test('TimelineLabel renders as expected', () => {
};

// Act
const { container } = render(<TimelineItem {...props} />);
const { container } = render(<TimelineLabel {...props} />);

// Assert
expect(container).toMatchSnapshot();
Expand Down
7 changes: 1 addition & 6 deletions frontend/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ import i18n from 'i18next';
import { initReactI18next, useTranslation } from 'react-i18next';
import { registerLocale } from 'react-datepicker';
import en from 'date-fns/locale/en-US';
import fr from 'date-fns/locale/fr';
import km from 'date-fns/locale/km';
import pt from 'date-fns/locale/pt';
import es from 'date-fns/locale/es';
import ru from 'date-fns/locale/ru';
import mn from 'date-fns/locale/mn';
import { fr, km, pt, es, ru, mn } from 'date-fns/locale';

import { translation } from './config';

Expand Down

0 comments on commit 4c3bc28

Please sign in to comment.