Skip to content

Commit 7ed216a

Browse files
committed
#690: Fixed linting check
1 parent b56d924 commit 7ed216a

3 files changed

Lines changed: 1 addition & 9 deletions

File tree

src/frontend/src/hooks/work-packages.hooks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
getSingleWorkPackage,
1515
slackUpcomingDeadlines,
1616
getManyWorkPackages,
17-
CreateWorkPackageApiInputs,
1817
WorkPackageApiInputs
1918
} from '../apis/work-packages.api';
2019

src/frontend/src/pages/WorkPackageForm/WorkPackageForm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { UseMutateAsyncFunction } from 'react-query';
21
import { WbsNumber, WorkPackage, isGuest, wbsPipe } from 'shared';
32
import WorkPackageFormView, { WorkPackageFormViewPayload } from './WorkPackageFormView';
43
import { bulletsToObject } from '../../utils/form';

src/frontend/src/pages/WorkPackageForm/WorkPackageFormView.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { yupResolver } from '@hookform/resolvers/yup';
99
import * as yup from 'yup';
1010
import { Box, TextField, Autocomplete, FormControl, Typography } from '@mui/material';
1111
import { useState } from 'react';
12-
import { UseMutateAsyncFunction } from 'react-query';
1312
import WorkPackageFormDetails from './WorkPackageFormDetails';
1413
import NERFailButton from '../../components/NERFailButton';
1514
import NERSuccessButton from '../../components/NERSuccessButton';
@@ -116,12 +115,7 @@ const WorkPackageFormView: React.FC<WorkPackageFormViewProps> = ({
116115
} = useFieldArray({ control, name: 'deliverables' });
117116

118117
const { userId } = user;
119-
120-
const transformDate = (date: Date) => {
121-
const month = date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : (date.getMonth() + 1).toString();
122-
const day = date.getDate() < 10 ? `0${date.getDate()}` : date.getDate().toString();
123-
return `${date.getFullYear().toString()}-${month}-${day}`;
124-
};
118+
125119
const onSubmit = async (data: WorkPackageFormViewPayload) => {
126120
const { name, startDate, duration, blockedBy, crId, stage } = data;
127121
const expectedActivities = mapBulletsToPayload(data.expectedActivities);

0 commit comments

Comments
 (0)