@@ -17,7 +17,6 @@ import { useFormik } from "formik"
17
17
import { FC } from "react"
18
18
import * as Yup from "yup"
19
19
import { FieldErrors } from "../../api/errors"
20
- import { Workspace } from "../../api/typesGenerated"
21
20
import { getFormHelpers } from "../../util/formUtils"
22
21
import { FormFooter } from "../FormFooter/FormFooter"
23
22
import { FullPageForm } from "../FullPageForm/FullPageForm"
@@ -58,10 +57,8 @@ export interface WorkspaceScheduleFormProps {
58
57
fieldErrors ?: FieldErrors
59
58
initialValues ?: WorkspaceScheduleFormValues
60
59
isLoading : boolean
61
- now ?: dayjs . Dayjs
62
60
onCancel : ( ) => void
63
61
onSubmit : ( values : WorkspaceScheduleFormValues ) => void
64
- workspace : Workspace
65
62
}
66
63
67
64
export interface WorkspaceScheduleFormValues {
@@ -184,10 +181,8 @@ export const WorkspaceScheduleForm: FC<WorkspaceScheduleFormProps> = ({
184
181
fieldErrors,
185
182
initialValues = defaultWorkspaceSchedule ( ) ,
186
183
isLoading,
187
- now = dayjs ( ) ,
188
184
onCancel,
189
185
onSubmit,
190
- workspace,
191
186
} ) => {
192
187
const styles = useStyles ( )
193
188
@@ -285,8 +280,9 @@ export const ttlShutdownAt = (formTTL: number): string => {
285
280
if ( formTTL === 0 ) {
286
281
return Language . ttlCausesNoShutdownHelperText
287
282
} else {
288
- return `${ Language . ttlCausesShutdownHelperText } ${ dayjs . duration ( formTTL , "hours" ) . humanize ( ) } ${ Language . ttlCausesShutdownAfterStart
289
- } .`
283
+ return `${ Language . ttlCausesShutdownHelperText } ${ dayjs . duration ( formTTL , "hours" ) . humanize ( ) } ${
284
+ Language . ttlCausesShutdownAfterStart
285
+ } .`
290
286
}
291
287
}
292
288
0 commit comments