File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import { navHeight } from "../../theme/constants"
1313import { combineClasses } from "../../util/combineClasses"
1414import { UserDropdown } from "../UserDropdown/UsersDropdown"
1515
16+ export const USERS_LINK = `/users?filter=${ encodeURIComponent ( "status:active" ) } `
17+
1618export interface NavbarViewProps {
1719 logo_url ?: string
1820 user ?: TypesGen . User
@@ -59,10 +61,7 @@ const NavItems: React.FC<
5961 </ NavLink >
6062 </ ListItem >
6163 < ListItem button className = { styles . item } >
62- < NavLink
63- className = { styles . link }
64- to = { `/users?filter=${ encodeURIComponent ( "status:active" ) } ` }
65- >
64+ < NavLink className = { styles . link } to = { USERS_LINK } >
6665 { Language . users }
6766 </ NavLink >
6867 </ ListItem >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Link from "@material-ui/core/Link"
33import { makeStyles } from "@material-ui/core/styles"
44import GroupAdd from "@material-ui/icons/GroupAddOutlined"
55import PersonAdd from "@material-ui/icons/PersonAddOutlined"
6+ import { USERS_LINK } from "components/NavbarView/NavbarView"
67import { PageHeader , PageHeaderTitle } from "components/PageHeader/PageHeader"
78import { useFeatureVisibility } from "hooks/useFeatureVisibility"
89import { usePermissions } from "hooks/usePermissions"
@@ -61,7 +62,7 @@ export const UsersLayout: FC = () => {
6162 < Stack direction = "row" spacing = { 0.25 } >
6263 < NavLink
6364 end
64- to = "/users"
65+ to = { USERS_LINK }
6566 className = { ( { isActive } ) =>
6667 combineClasses ( [
6768 styles . tabItem ,
You can’t perform that action at this time.
0 commit comments