Skip to content

Commit

Permalink
updated imports for dayjs
Browse files Browse the repository at this point in the history
  • Loading branch information
al-rosenthal committed Jan 3, 2024
1 parent 90c80f7 commit 8c57786
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/src/utils/media/xlsx/xlsx-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dayjs from 'dayjs';
import { default as dayjs } from 'dayjs';
import xlsx, { CellObject } from 'xlsx';
import { safeTrim } from '../../string-utils';

Expand Down
2 changes: 1 addition & 1 deletion api/src/utils/xlsx-utils/cell-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dayjs from 'dayjs';
import { default as dayjs } from 'dayjs';
import { CellObject } from 'xlsx';
import { safeTrim } from '../string-utils';

Expand Down
2 changes: 1 addition & 1 deletion app/src/contexts/telemetryTableContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { GridRowId, GridRowSelectionModel, GridValidRowModel, useGridApiRef } fr
import { GridApiCommunity } from '@mui/x-data-grid/internals';
import { TelemetryTableI18N } from 'constants/i18n';
import { DialogContext } from 'contexts/dialogContext';
import dayjs from 'dayjs';
import { default as dayjs } from 'dayjs';
import { APIError } from 'hooks/api/useAxios';
import { ICreateManualTelemetry, IUpdateManualTelemetry, useTelemetryApi } from 'hooks/useTelemetryApi';
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion app/src/features/surveys/components/MethodForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Typography from '@mui/material/Typography';
import CustomTextField from 'components/fields/CustomTextField';
import { DateTimeFields } from 'components/fields/DateTimeFields';
import { CodesContext } from 'contexts/codesContext';
import dayjs from 'dayjs';
import { default as dayjs } from 'dayjs';
import { FieldArray, FieldArrayRenderProps, useFormikContext } from 'formik';
import get from 'lodash-es/get';
import { useContext, useEffect } from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SkeletonTable } from 'components/loading/SkeletonLoaders';
import { DATE_FORMAT } from 'constants/dateTimeFormats';
import { SurveyContext } from 'contexts/surveyContext';
import { IManualTelemetryTableRow, TelemetryTableContext } from 'contexts/telemetryTableContext';
import dayjs from 'dayjs';
import { default as dayjs } from 'dayjs';
import { useCallback, useContext, useEffect, useMemo } from 'react';
import { getFormattedDate } from 'utils/Utils';
import { ICritterDeployment } from './ManualTelemetryList';
Expand Down

0 comments on commit 8c57786

Please sign in to comment.