Skip to content

Commit

Permalink
feat(component): replaced -> component (carbon-design-system#14894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirajsah authored Oct 16, 2023
1 parent f07c9e3 commit fa9c18c
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@ import PropTypes from 'prop-types';
import React from 'react';
import { usePrefix } from '../../internal/usePrefix';

function SideNavDivider({ className }) {
interface SideNavDividerProps {
/**
* Provide an optional class to be applied to the containing node
*/
className?: string;
}
const SideNavDivider: React.FC<SideNavDividerProps> = ({ className }) => {
const prefix = usePrefix();
const classNames = cx(`${prefix}--side-nav__divider`, className);
return (
<li className={classNames}>
<hr />
</li>
);
}
};

SideNavDivider.propTypes = {
/**
Expand Down

0 comments on commit fa9c18c

Please sign in to comment.