Skip to content

Commit

Permalink
feat: less wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmch committed Nov 1, 2023
1 parent 177862b commit b7efa32
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@gravity-ui/prettier-config": "^1.0.1",
"@gravity-ui/stylelint-config": "^2.0.0",
"@gravity-ui/tsconfig": "^1.0.0",
"@gravity-ui/uikit": "^5.17.0",
"@gravity-ui/uikit": "^5.18.1",
"@storybook/addon-essentials": "^7.1.1",
"@storybook/cli": "^7.1.1",
"@storybook/preset-scss": "^1.0.3",
Expand Down Expand Up @@ -88,7 +88,7 @@
"typescript": "^4.9.5"
},
"peerDependencies": {
"@gravity-ui/uikit": "^5.12.0",
"@gravity-ui/uikit": "^5.18.0",
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
},
Expand Down
19 changes: 11 additions & 8 deletions src/components/HelpPopover/HelpPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ export interface HelpPopoverProps extends Omit<PopoverProps, 'children'>, QAProp
export function HelpPopover(props: HelpPopoverProps) {
return (
<Popover {...props} className={b(null, props.className)}>
<button
ref={props.buttonRef}
type="button"
{...props.buttonProps}
className={b('button', props.buttonProps?.className)}
>
<Icon data={QuestionMarkIcon} size={16} />
</button>
{({onClick}) => (
<button
ref={props.buttonRef}
type="button"
{...props.buttonProps}
className={b('button', props.buttonProps?.className)}
onClick={onClick}
>
<Icon data={QuestionMarkIcon} size={16} />
</button>
)}
</Popover>
);
}

0 comments on commit b7efa32

Please sign in to comment.