Skip to content

Commit

Permalink
rename search -> queryParams
Browse files Browse the repository at this point in the history
  • Loading branch information
oshi97 committed Oct 15, 2021
1 parent 11d5905 commit e88666d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample-app/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ export default function Navigation({ links }: NavigationProps) {
)
}

function renderLink(linkData: LinkData, search: string) {
function renderLink(linkData: LinkData, queryParams: string) {
const { to, label } = linkData;
return (
<NavLink
key={to}
className='Navigation__link'
activeClassName='Navigation__link--currentRoute'
to={`${to}${search}`}
to={`${to}${queryParams}`}
exact={true}
>
{label}
Expand Down

0 comments on commit e88666d

Please sign in to comment.