Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit 5433648

Browse files
committed
Add App route to OrganizationSettings component
Add links in DrawerMenu to subscribed Orgs
1 parent 0ffae23 commit 5433648

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

client/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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} />

client/src/Navigation/DrawerMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

client/src/Organization/OrganizationSettings.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)