Add planner-aware memos and unified tool configuration panels
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
This commit is contained in:
parent
acd9b2fe11
commit
808610dcf2
53 changed files with 842 additions and 329 deletions
|
|
@ -13,7 +13,7 @@ import {
|
|||
timePartsToDurationMs,
|
||||
timePartsToString
|
||||
} from "./timerUtils.js";
|
||||
import { TextExchangeActions } from "./TextExchangeActions.jsx";
|
||||
import { ModuleTextExchangeConfiguration } from "./ModuleConfiguration.jsx";
|
||||
import { CountdownControls, CountdownList } from "./TimerCountdown.jsx";
|
||||
import { StopwatchControls, StopwatchLapList } from "./TimerStopwatch.jsx";
|
||||
import {
|
||||
|
|
@ -30,7 +30,7 @@ import {
|
|||
isAlertGuarded
|
||||
} from "./timerOptions.js";
|
||||
|
||||
export function TimerModule({ toolboxId, moduleId, context, textExchangeOpen }) {
|
||||
export function TimerModule({ toolboxId, moduleId, context, configurationTarget }) {
|
||||
const rawData = context.getModuleData(toolboxId, moduleId, { activeTab: "stopwatch" });
|
||||
const data = useMemo(() => context.normalizeTimerData(rawData), [context, rawData]);
|
||||
const textContent = context.moduleText?.timer || {};
|
||||
|
|
@ -252,11 +252,7 @@ export function TimerModule({ toolboxId, moduleId, context, textExchangeOpen })
|
|||
|
||||
return (
|
||||
<div className="timer-module">
|
||||
{textExchangeOpen && (
|
||||
<div className="module-text-exchange-panel">
|
||||
<TextExchangeActions type="timer" data={data} context={context} textContent={textContent} onImport={(nextData) => save(nextData)} />
|
||||
</div>
|
||||
)}
|
||||
<ModuleTextExchangeConfiguration target={configurationTarget} title={context.moduleConfigurationText?.dataTitle} type="timer" data={data} context={context} textContent={textContent} onImport={(nextData) => save(nextData)} />
|
||||
<section className="timer-control-card">
|
||||
<Tabs
|
||||
className="timer-tabs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue