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

Commit ec50878

Browse files
committed
OrganizationSettings layout
1 parent 34c572d commit ec50878

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

client/src/Organization/OrganizationSettings.tsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import UserContext from "../Users/UserContext";
33

44
const OrganizationSettings: React.FC = () => {
55
const tsrUser = useContext(UserContext);
6+
const url = window.location.href;
7+
const orgPath = url.length - 1;
8+
const orgId = url[orgPath];
69

710
useEffect(() => {
811
if (tsrUser === undefined) {
@@ -19,11 +22,18 @@ const OrganizationSettings: React.FC = () => {
1922
}
2023

2124
return (
22-
<>
23-
<h1 className="UserSettings-Header">{`${tsrUser.username} organization settings`}</h1>
24-
<p>Role: {tsrUser.role}</p>
25-
<p>{tsrUser.settings.organizations}</p>
26-
</>
25+
<div className="Event-Details-Container">
26+
<h1 className="UserSettings-Header">{`${tsrUser.username} organization: ${orgId} settings`}</h1>
27+
<div className="space-3" />
28+
<form>
29+
<h2>Role</h2>
30+
<select defaultValue={undefined}>
31+
<option>---</option>
32+
<option value={`${tsrUser.userId}:${url}`}>Resourcer</option>
33+
</select>
34+
<div className="space-3" />
35+
</form>
36+
</div>
2737
);
2838
};
2939

0 commit comments

Comments
 (0)