Skip to content

Commit 4f9bed5

Browse files
committed
yarn lint
1 parent 9f314b7 commit 4f9bed5

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

site/src/components/WorkspaceScheduleForm/WorkspaceScheduleForm.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { useFormik } from "formik"
1717
import { FC } from "react"
1818
import * as Yup from "yup"
1919
import { FieldErrors } from "../../api/errors"
20-
import { Workspace } from "../../api/typesGenerated"
2120
import { getFormHelpers } from "../../util/formUtils"
2221
import { FormFooter } from "../FormFooter/FormFooter"
2322
import { FullPageForm } from "../FullPageForm/FullPageForm"
@@ -58,10 +57,8 @@ export interface WorkspaceScheduleFormProps {
5857
fieldErrors?: FieldErrors
5958
initialValues?: WorkspaceScheduleFormValues
6059
isLoading: boolean
61-
now?: dayjs.Dayjs
6260
onCancel: () => void
6361
onSubmit: (values: WorkspaceScheduleFormValues) => void
64-
workspace: Workspace
6562
}
6663

6764
export interface WorkspaceScheduleFormValues {
@@ -184,10 +181,8 @@ export const WorkspaceScheduleForm: FC<WorkspaceScheduleFormProps> = ({
184181
fieldErrors,
185182
initialValues = defaultWorkspaceSchedule(),
186183
isLoading,
187-
now = dayjs(),
188184
onCancel,
189185
onSubmit,
190-
workspace,
191186
}) => {
192187
const styles = useStyles()
193188

@@ -285,8 +280,9 @@ export const ttlShutdownAt = (formTTL: number): string => {
285280
if (formTTL === 0) {
286281
return Language.ttlCausesNoShutdownHelperText
287282
} 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+
}.`
290286
}
291287
}
292288

site/src/pages/WorkspaceSchedulePage/WorkspaceSchedulePage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ export const WorkspaceSchedulePage: React.FC = () => {
161161
} else if (scheduleState.matches("presentForm") || scheduleState.matches("submittingSchedule")) {
162162
return (
163163
<WorkspaceScheduleForm
164-
workspace={workspace}
165164
fieldErrors={formErrors}
166165
initialValues={workspaceToInitialValues(workspace, dayjs.tz.guess())}
167166
isLoading={scheduleState.tags.has("loading")}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy