diff --git a/src/packages/frontend/customize.tsx b/src/packages/frontend/customize.tsx index 37e730f92b..622413b7cc 100644 --- a/src/packages/frontend/customize.tsx +++ b/src/packages/frontend/customize.tsx @@ -126,6 +126,7 @@ export interface CustomizeState { logo_square: string; max_upgrades: TypedMap>; nonfree_countries?: List; + limit_free_project_uptime: number; // minutes onprem_quota_heading: string; organization_email: string; organization_name: string; diff --git a/src/packages/frontend/editors/stopwatch/stopwatch.tsx b/src/packages/frontend/editors/stopwatch/stopwatch.tsx index 462be3391f..8fc30e007b 100644 --- a/src/packages/frontend/editors/stopwatch/stopwatch.tsx +++ b/src/packages/frontend/editors/stopwatch/stopwatch.tsx @@ -14,13 +14,13 @@ import { PlayCircleTwoTone, StopTwoTone, } from "@ant-design/icons"; -import { redux, useForceUpdate } from "@cocalc/frontend/app-framework"; -import { Icon } from "@cocalc/frontend/components/icon"; import { Button, Col, Modal, Row, TimePicker, Tooltip } from "antd"; import type { Dayjs } from "dayjs"; import dayjs from "dayjs"; import { CSSProperties, useEffect, useState } from "react"; +import { redux, useForceUpdate } from "@cocalc/frontend/app-framework"; +import { Icon } from "@cocalc/frontend/components/icon"; import MarkdownInput from "@cocalc/frontend/editors/markdown-input/multimode"; import StaticMarkdown from "@cocalc/frontend/editors/slate/static-markdown"; import { useFrameContext } from "@cocalc/frontend/frame-editors/frame-tree/frame-context"; @@ -36,7 +36,7 @@ interface StopwatchProps { state: TimerState; // 'paused' or 'running' or 'stopped' time: number; // when entered this state countdown?: number; // if given, this is a countdown timer, counting down from this many seconds. - clickButton: (str: string) => void; + clickButton?: (str: string) => void; setLabel?: (str: string) => void; setCountdown?: (time: number) => void; // time in seconds compact?: boolean; @@ -71,7 +71,7 @@ export default function Stopwatch(props: StopwatchProps) { > @@ -126,7 +126,7 @@ export default function Stopwatch(props: StopwatchProps) { time.second() + time.minute() * 60 + time.hour() * 60 * 60, ); // timeout so the setcountdown can fully propagate through flux; needed for whiteboard - setTimeout(() => props.clickButton("reset"), 0); + setTimeout(() => props.clickButton?.("reset"), 0); } }} showNow={false} @@ -152,7 +152,7 @@ export default function Stopwatch(props: StopwatchProps) { > @@ -165,7 +165,7 @@ export default function Stopwatch(props: StopwatchProps) {