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 authored and tekton-robot committed Sep 23, 2024
1 parent 1e41d63 commit 5ad571d
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 5ad571d

Please sign in to comment.