Skip to content

Commit

Permalink
Merge pull request #3251 from pdcp1/fix/eslint-errors
Browse files Browse the repository at this point in the history
Remove unused user context from NewIncidentPage component
  • Loading branch information
clari182 authored Dec 3, 2024
2 parents 305ff7a + b602996 commit 56907df
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions site/gatsby-site/src/pages/incidents/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,18 @@ import IncidentForm, { schema } from '../../components/incidents/IncidentForm';
import useToastContext, { SEVERITY } from '../../hooks/useToast';
import { NumberParam, useQueryParam, withDefault } from 'use-query-params';
import { Button, Spinner } from 'flowbite-react';
import {
FIND_INCIDENT,
GET_LATEST_INCIDENT_ID,
INSERT_INCIDENT,
} from '../../graphql/incidents';
import { FIND_INCIDENT, GET_LATEST_INCIDENT_ID, INSERT_INCIDENT } from '../../graphql/incidents';
import { FIND_ENTITIES, UPSERT_ENTITY } from '../../graphql/entities';
import { useMutation, useQuery } from '@apollo/client/react/hooks';
import { Formik } from 'formik';
import { LocalizedLink, useLocalization } from 'plugins/gatsby-theme-i18n';
import { useTranslation, Trans } from 'react-i18next';
import { processEntities } from '../../utils/entities';
import DefaultSkeleton from 'elements/Skeletons/Default';
import { useUserContext } from '../../contexts/userContext';
import { getUnixTime } from 'date-fns';

function NewIncidentPage() {
const [incidentIdToClone] = useQueryParam('incident_id', withDefault(NumberParam, 0));

const { user } = useUserContext();

const { t, i18n } = useTranslation();

const { data: incidentToCloneData, loading: loadingIncidentToClone } = useQuery(FIND_INCIDENT, {
Expand Down

0 comments on commit 56907df

Please sign in to comment.