From bf73d5e5ec970e893c8681d07e97d01b8a99eb9c Mon Sep 17 00:00:00 2001 From: "k.sidorov" Date: Tue, 6 Aug 2019 12:23:26 +0300 Subject: [PATCH] [NF] @role for core elements Block, Grid, Input and rf Button, Popup --- packages/core/src/block/Block.tsx | 2 ++ packages/core/src/grid/Grid.tsx | 2 +- packages/core/src/input/BasicInput.tsx | 1 + packages/desktop/src/button/Button.tsx | 1 + packages/desktop/src/modal/SimpleModal.tsx | 4 +++- packages/mobile/src/button/Button.tsx | 1 + packages/mobile/src/modal/SimpleModal.tsx | 4 +++- 7 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/core/src/block/Block.tsx b/packages/core/src/block/Block.tsx index c8c20c709..01d5487bf 100644 --- a/packages/core/src/block/Block.tsx +++ b/packages/core/src/block/Block.tsx @@ -13,6 +13,8 @@ export interface BlockProps { export const Block: FC = (props) => ( = ({gutter = 20, columns = 12, layout = columns const rowBlocksCount: number = columns / layoutSum * layoutLength return ( - + {Children.map(elements, (child: ReactNode, index: number) => ( = (props) => { /> ) : ( diff --git a/packages/desktop/src/button/Button.tsx b/packages/desktop/src/button/Button.tsx index a243df06b..4a1e76407 100644 --- a/packages/desktop/src/button/Button.tsx +++ b/packages/desktop/src/button/Button.tsx @@ -156,6 +156,7 @@ export const Button: FunctionComponent = (props) => ( children={(renderProps) => ( = (props) => ( )} children={( - + {props.closable && props.onHide ? ( = (props) => ( children={(renderProps) => ( = (props) => ( )} children={( - + {props.closable && props.onHide ? (