Skip to content

Commit

Permalink
Merge branch 'main' of github.com:lopatoj/hackrice14
Browse files Browse the repository at this point in the history
  • Loading branch information
lopatoj committed Sep 22, 2024
2 parents 1e5dccb + e1bb0a2 commit 38d8666
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/src/modules/backend_functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async function setProfileBio(user: User, new_bio: string) {
const url = `${starting_point}/profile/me?id_token=${encodeURIComponent(await user.getIdToken(true))}`
await fetch(url, {
method: "POST",
headers: {'Content-Type': "application/json"},
body: JSON.stringify({
"bio": new_bio
})
Expand Down
26 changes: 25 additions & 1 deletion client/src/pages/Userinfo/Userinfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function Bio(props: {bio: string})
const [userData, setUserData] = user_data_state.useState()

useEffect(() => {

setLocalBio(bio)
}, [bio])

const textboxRef = useRef(null);
Expand Down Expand Up @@ -88,6 +88,30 @@ function NotSignedIn()
</div>
}

function MatchingSignup()
{
const [userData, setUserData] = user_data_state.useState()

function cancel_signup()
{

}

function request_signup()
{

}

return <div>
{userData && userData.open_to_wave?<div>
<h4>You are signed up for the next wave</h4>
<Button variant="danger" onClick={cancel_signup}>Cancel Signup</Button>
</div>:<div>
<Button variant="success" onClick={request_signup}>Cancel Signup</Button>
</div>}
</div>
}

function InfoWindow()
{
const [user, setUser] = useState<User|null>()
Expand Down

0 comments on commit 38d8666

Please sign in to comment.