Openstatus www.openstatus.dev

fix: remove test button on onboarding

+7 -1
+2
apps/web/src/app/app/[workspaceSlug]/onboarding/page.tsx
··· 38 38 <MonitorForm 39 39 notifications={allNotifications} 40 40 defaultSection="request" 41 + // FIXME: we are getting an https://react.dev/errors/482 error here! 42 + withTestButton={false} 41 43 /> 42 44 </div> 43 45 <div className="hidden h-full md:col-span-1 md:block">
+5 -1
apps/web/src/components/forms/monitor/form.tsx
··· 47 47 tags?: MonitorTag[]; 48 48 pages?: Page[]; 49 49 nextUrl?: string; 50 + withTestButton?: boolean; 50 51 } 51 52 52 53 const ABORT_TIMEOUT = 7_000; // in ms ··· 59 60 pages, 60 61 tags, 61 62 nextUrl, 63 + withTestButton = true, 62 64 }: Props) { 63 65 const _assertions = defaultValues?.assertions 64 66 ? assertions.deserialize(defaultValues?.assertions).map((a) => a.schema) ··· 310 312 ) : null} 311 313 </Tabs> 312 314 <div className="grid gap-4 sm:flex sm:items-start sm:justify-end"> 313 - <RequestTestButton {...{ form, pingEndpoint }} /> 315 + {withTestButton ? ( 316 + <RequestTestButton {...{ form, pingEndpoint }} /> 317 + ) : null} 314 318 <SaveButton 315 319 isPending={isPending} 316 320 isDirty={form.formState.isDirty}