Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes committed Jan 3, 2025
1 parent f52877d commit 0ab9845
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/eds-core-react/src/components/Tabs/Tabs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,9 @@ export const Router: StoryFn<TabsProps> = () => {
return <Typography>Current route: {location.pathname}</Typography>
}
function useRouteMatch(patterns: readonly string[]) {
const { pathname } = useLocation()

for (let i = 0; i < patterns.length; i += 1) {
const pattern = patterns[i]
const possibleMatch = matchPath(pattern, pathname)
const possibleMatch = matchPath(pattern, location.pathname)
if (possibleMatch !== null) {
return possibleMatch
}
Expand Down

0 comments on commit 0ab9845

Please sign in to comment.