Skip to content

Commit

Permalink
refactor(react): update TabContent usePrefix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Mar 18, 2022
1 parent 0278575 commit faeabc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/TabContent/TabContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ function useTabbableContent(ref) {

const TabContent = (props) => {
const { className, selected, children, ...other } = props;
const prefix = usePrefix();
const tabContentClasses = classNames(`${prefix}--tab-content`, {
[className]: className,
});
const ref = useRef(null);
const hasTabbableContent = useTabbableContent(ref);
const prefix = usePrefix();
return (
<div
role="tabpanel"
Expand Down

0 comments on commit faeabc1

Please sign in to comment.