Skip to content

Commit

Permalink
OCLOMRS-1033: Add a tab to view "My Organizations" to the organizatio…
Browse files Browse the repository at this point in the history
…ns view (#734)

* Put my organisation tab back

* Use My to replace Your
  • Loading branch information
hadijahkyampeire authored Aug 24, 2021
1 parent 7df7b4c commit 570ca1c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/apps/dictionaries/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TabType } from "../containers/types";

export const TAB_LIST: TabType[] = [
{
labelName: "Your Dictionaries",
labelName: "My Dictionaries",
labelURL: "/user/collections/"
},
{
Expand Down
9 changes: 4 additions & 5 deletions src/apps/organisations/constants.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { TabType } from "../containers/types";

export const TAB_LIST: TabType[] = [
// commented out until OCL API v2 is released
// {
// labelName: "Your Organisations",
// labelURL: "/user/orgs/",
// },
{
labelName: "My Organisations",
labelURL: "/user/orgs/",
},
{
labelName: "Public Organisations",
labelURL: "/orgs/"
Expand Down
2 changes: 1 addition & 1 deletion src/apps/sources/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const OCL_SOURCE_TYPE = "Dictionary";

export const TAB_LIST: TabType[] = [
{
labelName: "Your Sources",
labelName: "My Sources",
labelURL: "/user/sources/"
},
{
Expand Down
3 changes: 1 addition & 2 deletions src/components/NavDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ export const NavDrawer: React.FC<Props> = ({ children, logout, profile }) => {
component={Link}
exact
activeClassName={classes.selected}
// to="/user/orgs/"
to="/orgs/"
to="/user/orgs/"
key="Organisations"
>
<Tooltip title="Organisations">
Expand Down

0 comments on commit 570ca1c

Please sign in to comment.