Skip to content

Commit

Permalink
fix: change placement randomize
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 9, 2020
1 parent 0fd3542 commit 6fe605b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ui/blocks/src/PropsTable/controlsActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ export const useControlsActions = (props: UseControlsActionsProps) => {
'aria-label': 'copy control values',
},
];
if (canReset) {
actions.push({
node: 'reset',
onClick: onReset,
group: 'controls',
id: 'reset',
'aria-label': 'reset control values to their initial value',
});
}
if (canRandomize) {
actions.push({
node: 'randomize',
Expand All @@ -87,5 +78,14 @@ export const useControlsActions = (props: UseControlsActionsProps) => {
'aria-label': 'generate random values for the component controls',
});
}
if (canReset) {
actions.push({
node: 'reset',
onClick: onReset,
group: 'controls',
id: 'reset',
'aria-label': 'reset control values to their initial value',
});
}
return actions;
};

0 comments on commit 6fe605b

Please sign in to comment.