File tree 2 files changed +5
-5
lines changed
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"
13
13
import { combineClasses } from "../../util/combineClasses"
14
14
import { UserDropdown } from "../UserDropdown/UsersDropdown"
15
15
16
+ export const USERS_LINK = `/users?filter=${ encodeURIComponent ( "status:active" ) } `
17
+
16
18
export interface NavbarViewProps {
17
19
logo_url ?: string
18
20
user ?: TypesGen . User
@@ -59,10 +61,7 @@ const NavItems: React.FC<
59
61
</ NavLink >
60
62
</ ListItem >
61
63
< 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 } >
66
65
{ Language . users }
67
66
</ NavLink >
68
67
</ ListItem >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Link from "@material-ui/core/Link"
3
3
import { makeStyles } from "@material-ui/core/styles"
4
4
import GroupAdd from "@material-ui/icons/GroupAddOutlined"
5
5
import PersonAdd from "@material-ui/icons/PersonAddOutlined"
6
+ import { USERS_LINK } from "components/NavbarView/NavbarView"
6
7
import { PageHeader , PageHeaderTitle } from "components/PageHeader/PageHeader"
7
8
import { useFeatureVisibility } from "hooks/useFeatureVisibility"
8
9
import { usePermissions } from "hooks/usePermissions"
@@ -61,7 +62,7 @@ export const UsersLayout: FC = () => {
61
62
< Stack direction = "row" spacing = { 0.25 } >
62
63
< NavLink
63
64
end
64
- to = "/users"
65
+ to = { USERS_LINK }
65
66
className = { ( { isActive } ) =>
66
67
combineClasses ( [
67
68
styles . tabItem ,
You can’t perform that action at this time.
0 commit comments