Skip to content

Commit

Permalink
feat(align): added possibility to pass actions to text align widget b…
Browse files Browse the repository at this point in the history
…ypassing defaults
  • Loading branch information
ichim-david committed Sep 23, 2022
1 parent 1381793 commit 2b2a193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Widgets/TextAlign.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const VALUE_MAP = [
];

export default (props) => {
const { value, onChange, id } = props;
const { value, onChange, id, actions = VALUE_MAP } = props;
return (
<FormFieldWrapper {...props}>
<div className="align-tools">
{VALUE_MAP.map(([name, icon], index) => (
{actions.map(([name, icon], index) => (
<Button.Group key={`button-group-${name}-${index}`}>
<Button
icon
Expand Down

0 comments on commit 2b2a193

Please sign in to comment.