From 36200044db4c401f037c36f357a8038520c8ecb1 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 20 Jun 2022 15:36:26 +0100 Subject: [PATCH] attempt to set copy tool to checked by default --- .../frontend/building/header-buttons/copy-control.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/src/frontend/building/header-buttons/copy-control.tsx b/app/src/frontend/building/header-buttons/copy-control.tsx index 3d6d1e60..63dcb4bd 100644 --- a/app/src/frontend/building/header-buttons/copy-control.tsx +++ b/app/src/frontend/building/header-buttons/copy-control.tsx @@ -8,6 +8,17 @@ interface CopyControlProps { toggleCopying: () => void; } +function initCopyControlProps(options?: Partial): CopyControlProps { + const defaults = { + copying: true + }; + + return { + ...defaults, + ...options, + }; +} + const CopyControl: React.FC = props => ( props.copying ? <>