Skip to content

Commit

Permalink
simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 13, 2019
1 parent d337bda commit 409dd43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions docs/src/pages/components/tooltips/CustomizedTooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ const useStylesBootstrap = makeStyles(theme => ({
function BootstrapTooltip(props) {
const classes = useStylesBootstrap();

return (
<Tooltip
arrow
classes={classes}
{...props}
title={<React.Fragment>{props.title}</React.Fragment>}
/>
);
return <Tooltip arrow classes={classes} {...props} />;
}

BootstrapTooltip.propTypes = {
Expand Down
9 changes: 1 addition & 8 deletions docs/src/pages/components/tooltips/CustomizedTooltips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@ const useStylesBootstrap = makeStyles((theme: Theme) => ({
function BootstrapTooltip(props: TooltipProps) {
const classes = useStylesBootstrap();

return (
<Tooltip
arrow
classes={classes}
{...props}
title={<React.Fragment>{props.title}</React.Fragment>}
/>
);
return <Tooltip arrow classes={classes} {...props} />;
}

const HtmlTooltip = withStyles((theme: Theme) => ({
Expand Down

0 comments on commit 409dd43

Please sign in to comment.