Skip to content

Commit

Permalink
chore: Use inline JSX.IntrinsicElements['div'] type over explicit cla…
Browse files Browse the repository at this point in the history
…ssName type
  • Loading branch information
EnMod committed Sep 13, 2024
1 parent c9a4ae2 commit 52734ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Sidebar = ({
isInstallPage,
showResourcesList = true,
className,
}: SidebarProps): ReactElement => {
}: SidebarProps & JSX.IntrinsicElements['div']) => {
const currentProduct = useCurrentProduct()
const { shouldRenderMobileControls } = useSidebarNavData()
const currentPath = useCurrentPath({ excludeHash: true, excludeSearch: true })
Expand Down
4 changes: 0 additions & 4 deletions src/components/sidebar/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,6 @@ interface SidebarBaseProps {
* Optional. If true, the sidebar will show the Resources list.
*/
showResourcesList?: boolean
/**
* Optional. Used to add styling to the sidebar component.
*/
className?: string
}

/**
Expand Down

0 comments on commit 52734ef

Please sign in to comment.