From 16fda1b608e68c818810de6ead385bc1028dd77f Mon Sep 17 00:00:00 2001 From: Grace Date: Mon, 2 Dec 2024 17:02:33 +0000 Subject: [PATCH] Add navigate next/prev action shortcut Also focuses on action's record button --- src/components/ActionDataSamplesCard.tsx | 4 ++++ src/pages/DataSamplesPage.tsx | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/ActionDataSamplesCard.tsx b/src/components/ActionDataSamplesCard.tsx index 04e018a84..73739e751 100644 --- a/src/components/ActionDataSamplesCard.tsx +++ b/src/components/ActionDataSamplesCard.tsx @@ -186,6 +186,9 @@ interface RecordingAreaProps extends BoxProps { onRecord: (recordingOptions: RecordingOptions) => void; } +export const recordButtonId = (action: ActionData) => + `record-button-${action.ID}`; + const RecordingArea = ({ action, selected, @@ -198,6 +201,7 @@ const RecordingArea = ({