From 49840a5ffef64342c13d07ed53826d195df319ba Mon Sep 17 00:00:00 2001 From: malmen237 Date: Fri, 8 Nov 2024 10:52:06 +0100 Subject: [PATCH] fix: added and updated some texts and added early return on clicking 'no layout'-selection --- src/components/modal/configureOutputModal/Decision.tsx | 10 ++++++++-- .../multiviewLayoutSetup/MultiviewLayoutSetup.tsx | 5 +++-- .../production/multiviews/ProductionMultiviews.tsx | 1 + src/i18n/locales/en.ts | 1 + src/i18n/locales/sv.ts | 1 + 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/modal/configureOutputModal/Decision.tsx b/src/components/modal/configureOutputModal/Decision.tsx index 426e173f..bf02ba1f 100644 --- a/src/components/modal/configureOutputModal/Decision.tsx +++ b/src/components/modal/configureOutputModal/Decision.tsx @@ -5,9 +5,15 @@ interface IDecision { onClose: () => void; onSave: () => void; className?: string; + buttonText?: string; } -export default function Decision({ onClose, onSave, className }: IDecision) { +export default function Decision({ + onClose, + onSave, + className, + buttonText +}: IDecision) { const t = useTranslate(); return ( @@ -17,7 +23,7 @@ export default function Decision({ onClose, onSave, className }: IDecision) { }`} >