Skip to content

Commit

Permalink
Merge pull request #32 from Firebird1029/fix_lint
Browse files Browse the repository at this point in the history
Fix lint
  • Loading branch information
hoixw authored Mar 30, 2024
2 parents 70bf057 + a354a02 commit 75d0c86
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ The application is deployed at [http://unify-cs439.vercel.app](http://unify-cs43
You can view an example of a user data page at [http://unify-cs439.vercel.app/user/testuser](http://unify-cs439.vercel.app/user/testuser)\
You can view an example of a unify data page at [http://unify-cs439.vercel.app/unify/testuser&byee1029](http://unify-cs439.vercel.app/unify/testuser&byee1029)\
To log in with Spotify, you must be a registered user, as the app is in development (on Spotify's end).\
Contact david.crair@yale.edu to be added as a user.
Contact <david.crair@yale.edu> to be added as a user.
25 changes: 12 additions & 13 deletions src/components/svg-art/index_content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ import { loginWithSpotify } from "@/app/login/actions";
export default function IndexContent() {
function handleSignOut() {
// Perform sign-out actions here, e.g., make an API request to sign the user out
fetch("/auth/signout", { method: "POST" })
.then((response) => {
if (response.ok) {
// Handle successful sign-out, e.g., redirect to login page
window.location.href = "/";
} else {
// Handle sign-out failure
console.error("Sign-out failed");
}
})
.catch((error) => {
console.error("Error occurred during sign-out:", error);
});
fetch("/auth/signout", { method: "POST" }).then((response) => {
if (response.ok) {
// Handle successful sign-out, e.g., redirect to login page
window.location.href = "/";
} else {
// Handle sign-out failure
// console.error("Sign-out failed");
}
});
// .catch((error) => {
// // console.error("Error occurred during sign-out:", error);
// });
}

return (
Expand Down

0 comments on commit 75d0c86

Please sign in to comment.