From 6fe605b584663f56c32d1784b5cae3a1c80e5520 Mon Sep 17 00:00:00 2001 From: atanasster Date: Sun, 9 Aug 2020 19:22:22 +0300 Subject: [PATCH] fix: change placement randomize --- ui/blocks/src/PropsTable/controlsActions.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/blocks/src/PropsTable/controlsActions.ts b/ui/blocks/src/PropsTable/controlsActions.ts index f0e534fa5..406ed44d4 100644 --- a/ui/blocks/src/PropsTable/controlsActions.ts +++ b/ui/blocks/src/PropsTable/controlsActions.ts @@ -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', @@ -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; };