File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
sdk/src/widgets/definitions/configurations
widgets-lib/src/widgets/transfer Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ import { WidgetConfiguration } from './widget';
55 */
66export type TransferWidgetConfiguration = {
77 customTitle ?: string ;
8+ showHeader ?: boolean ;
89} & WidgetConfiguration ;
Original file line number Diff line number Diff line change @@ -29,13 +29,15 @@ export function TransferForm({
2929 setViewState,
3030 onSend,
3131 showBackButton,
32+ showHeader,
3233 title,
3334} : {
3435 config : StrongCheckoutWidgetsConfig ;
3536 viewState : TransferFormState ;
3637 setViewState : Dispatch < SetStateAction < TransferState > > ;
3738 onSend : ( ) => void ;
3839 showBackButton : boolean | undefined ;
40+ showHeader : boolean ;
3941 title : string ;
4042} ) {
4143 const { t } = useTranslation ( ) ;
@@ -137,7 +139,7 @@ export function TransferForm({
137139
138140 return (
139141 < SimpleLayout
140- header = { (
142+ header = { showHeader ? (
141143 < HeaderNavigation
142144 title = { title }
143145 onCloseButtonClick = { ( ) => sendCloseWidgetEvent ( eventTarget ) }
@@ -150,7 +152,7 @@ export function TransferForm({
150152 ) ;
151153 } }
152154 />
153- ) }
155+ ) : undefined }
154156 >
155157 < Stack
156158 justifyContent = "space-between"
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ function TransferWidgetInner(props: TransferWidgetInputs) {
205205 setViewState = { setViewState }
206206 onSend = { onSend }
207207 showBackButton = { props . showBackButton }
208+ showHeader = { props . transferConfig . showHeader ?? true }
208209 title = { props . transferConfig . customTitle ?? t ( 'views.TRANSFER.header.title' ) }
209210 />
210211 ) ;
You can’t perform that action at this time.
0 commit comments