Skip to content

Commit

Permalink
move pronouns to prop
Browse files Browse the repository at this point in the history
  • Loading branch information
makinbacon21 committed Mar 26, 2024
1 parent 01d0069 commit 8b8b91f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const user_data:StudentInfo = {
dorm: "MERTZ",
room: "125",
id: '',
photo_path: ''
photo_path: '',
pronouns: ''
}

export default function Settings(){
Expand Down
4 changes: 3 additions & 1 deletion components/pagebody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface StudentInfo {
room: string;
id: string;
photo_path: string;
pronouns: string;
}

async function filterData({ user_settings, searchParams }: { user_settings: any, searchParams?: {
Expand Down Expand Up @@ -92,7 +93,8 @@ async function filterData({ user_settings, searchParams }: { user_settings: any,
dorm: student['DORM'],
room: student['DORM_ROOM'],
id: student['USER_ID'],
photo_path: path
photo_path: path,
pronouns: ""
}

if (student['USER_ID'] in user_settings[0]['ROOM_HIDDEN']) {
Expand Down
2 changes: 1 addition & 1 deletion components/userinfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function UserInfo(props: StudentInfo | any) {
return (
<div className="mont mt-2 text-center">
<div className="h4 mb-0">{props.first} {props.last}</div>
<p className="font-light mb-0">he/him</p> {/*get pronouns from where*/}
<p className="font-light mb-0">{props.pronouns}</p> {/*get pronouns from where*/}
<div className="h6 font-light mt-3">{props.dorm} {props.room} | {props.year}</div>
<div className="h6 mt-3">{props.id}</div>
</div>
Expand Down

0 comments on commit 8b8b91f

Please sign in to comment.