From 9f9c316f304477e6a40a80d0bd6d7ed71687388f Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Thu, 1 Oct 2020 23:29:13 +0300 Subject: [PATCH] Dynamically generated plot --- src/App.tsx | 5 ++- src/components/WorkoutPlot.tsx | 62 ++++++++++++++++++++++++---------- 2 files changed, 48 insertions(+), 19 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 12d94db..554d4a3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,9 +6,12 @@ import { ErrorMessage } from './components/ErrorMessage'; const defaultWorkout = `Name: Hello +Warmup: 10:00 30%..60% +Interval: 20:00 100% Rest: 10:00 75% Interval: 20:00 100% Rest: 10:00 75% +Cooldown: 10:00 60%..30% `; export function App() { @@ -31,7 +34,7 @@ export function App() {

Workout editor