Skip to content

Commit

Permalink
chore: sidebar item can be provided with a className
Browse files Browse the repository at this point in the history
  • Loading branch information
mareklibra committed Jan 18, 2024
1 parent 807f577 commit 4734254
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type NotificationsSidebarItemProps = {
* Example: 5000
*/
pollingInterval?: number;
className?: string;
};

const useStyles = makeStyles(_theme => ({
Expand All @@ -42,6 +43,7 @@ const useStyles = makeStyles(_theme => ({

export const NotificationsSidebarItem = ({
pollingInterval,
className,
}: NotificationsSidebarItemProps) => {
const styles = useStyles();
const notificationsApi = useApi(notificationsApiRef);
Expand Down Expand Up @@ -88,6 +90,7 @@ export const NotificationsSidebarItem = ({
return (
<>
<SidebarItem
className={className}
icon={icon}
to={NOTIFICATIONS_ROUTE}
text="Notifications"
Expand Down

0 comments on commit 4734254

Please sign in to comment.