Update confirm text button when duplicating screens

This commit is contained in:
Andrew Kingston 2022-03-07 10:41:52 +00:00
parent 018b8713d7
commit 4c88a046fd
2 changed files with 3 additions and 1 deletions

View File

@ -85,5 +85,6 @@
onConfirm={createDuplicateScreen} onConfirm={createDuplicateScreen}
screenName={screen?.props._instanceName} screenName={screen?.props._instanceName}
screenUrl={screen?.routing.route} screenUrl={screen?.routing.route}
confirmText="Duplicate"
/> />
</Modal> </Modal>

View File

@ -9,6 +9,7 @@
export let showProgressCircle = false export let showProgressCircle = false
export let screenName export let screenName
export let screenUrl export let screenUrl
export let confirmText = "Continue"
let routeError let routeError
let touched = false let touched = false
@ -46,7 +47,7 @@
<ModalContent <ModalContent
size="M" size="M"
title={"Enter details"} title={"Enter details"}
confirmText={"Continue"} {confirmText}
onConfirm={confirmScreenDetails} onConfirm={confirmScreenDetails}
{onCancel} {onCancel}
cancelText={"Back"} cancelText={"Back"}