This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29b059e
commit 1dd3bbf
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
assets/js/blocks/order-confirmation/billing-address/attributes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
import { DEFAULT_TITLE } from './constants'; | ||
|
||
const attributes = ( { | ||
defaultTitle = DEFAULT_TITLE, | ||
}: { | ||
defaultTitle: string; | ||
} ): Record< string, Record< string, unknown > > => ( { | ||
title: { | ||
type: 'string', | ||
default: defaultTitle, | ||
}, | ||
} ); | ||
|
||
export default attributes; |
9 changes: 9 additions & 0 deletions
9
assets/js/blocks/order-confirmation/billing-address/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import { __ } from '@wordpress/i18n'; | ||
|
||
export const DEFAULT_TITLE = __( | ||
'Billing address', | ||
'woo-gutenberg-products-block' | ||
); |