From d88338282c1702c139d50eb938cea7c7d73a2d3e Mon Sep 17 00:00:00 2001 From: Joshua Dinh Date: Mon, 15 Apr 2024 12:53:44 -0700 Subject: [PATCH] refactor: add descriptions array to donation amount block attributes --- .../js/form-builder/src/blocks/fields/amount/settings.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/FormBuilder/resources/js/form-builder/src/blocks/fields/amount/settings.tsx b/src/FormBuilder/resources/js/form-builder/src/blocks/fields/amount/settings.tsx index b27bfb9e20..2f50ac7444 100644 --- a/src/FormBuilder/resources/js/form-builder/src/blocks/fields/amount/settings.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/blocks/fields/amount/settings.tsx @@ -18,6 +18,7 @@ const { setPrice, priceOption, levels, + descriptions, defaultLevel, } = getDefaultBlockAttributes('givewp/donation-amount'); @@ -39,6 +40,10 @@ const settings: FieldBlock['settings'] = { type: 'array', default: levels, }, + descriptions: { + type: 'array', + default: descriptions, + }, defaultLevel: { type: 'number', default: defaultLevel,