Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c7091a

Browse files
committed
yarn lint
1 parentfaebe14 commit0c7091a

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*asYupfrom"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
exportinterfaceWorkspaceScheduleFormValues{
@@ -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
conststyles=useStyles()
193188

@@ -285,8 +280,9 @@ export const ttlShutdownAt = (formTTL: number): string => {
285280
if(formTTL===0){
286281
returnLanguage.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
}elseif(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)

[8]ページ先頭

©2009-2025 Movatter.jp