This repository was archived by the owner on Jun 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const App: React.FC = () => {
2828 < Route path = "/event/:eventId" component = { EventPage } />
2929 < Route path = "/about" component = { About } />
3030 < Route
31- path = "/organizationSettings "
31+ path = "/organization/:organizationId "
3232 component = { OrganizationSettings }
3333 />
3434 < Route path = "/settings" component = { UserSettings } />
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export const DrawerMenu: React.FC = (): ReactElement => {
5353 return (
5454 < NavLink
5555 key = { `${ tsrUser . username } -${ org . organizationDisplayName } ` }
56- to = { `${ org . organizationId } ` }
56+ to = { `organization/ ${ org . organizationId } ` }
5757 >
5858 { org . organizationDisplayName }
5959 </ NavLink >
Original file line number Diff line number Diff line change @@ -14,10 +14,15 @@ const OrganizationSettings: React.FC = () => {
1414 return < > </ > ;
1515 }
1616
17+ if ( tsrUser . settings . organizations === undefined ) {
18+ console . log ( "no orgs" ) ;
19+ }
20+
1721 return (
1822 < >
1923 < h1 className = "UserSettings-Header" > { `${ tsrUser . username } organization settings` } </ h1 >
20- < p > `Role :${ tsrUser . role } `</ p >
24+ < p > Role: { tsrUser . role } </ p >
25+ < p > { tsrUser . settings . organizations } </ p >
2126 </ >
2227 ) ;
2328} ;
You can’t perform that action at this time.
0 commit comments