Skip to content

Commit

Permalink
refactor: add descriptions array to donation amount block attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaHungDinh committed Apr 15, 2024
1 parent 409d9ed commit d883382
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const {
setPrice,
priceOption,
levels,
descriptions,
defaultLevel,
} = getDefaultBlockAttributes('givewp/donation-amount');

Expand All @@ -39,6 +40,10 @@ const settings: FieldBlock['settings'] = {
type: 'array',
default: levels,
},
descriptions: {
type: 'array',
default: descriptions,
},
defaultLevel: {
type: 'number',
default: defaultLevel,
Expand Down

0 comments on commit d883382

Please sign in to comment.