Skip to content

Commit

Permalink
Replace the deprecated element prop with as in Carbon components
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGreene committed Sep 21, 2024
1 parent c72049c commit 28c38ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/App/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function Root() {
render={({ isSideNavExpanded, onClickSideNavExpand }) => (
<Header
headerNameProps={{
element: HeaderNameLink
as: HeaderNameLink
}}
isSideNavExpanded={isSideNavExpanded}
onHeaderMenuButtonClick={onClickSideNavExpand}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/SideNav/SideNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function SideNav({ expanded, showKubernetesResources = false }) {

function getMenuItemProps(to) {
return {
element: NavLink,
as: NavLink,
isActive: !!matchPath(
{
path: to
Expand Down

0 comments on commit 28c38ef

Please sign in to comment.