Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mirmirmirr committed Dec 10, 2024
1 parent 6fd4ed9 commit c1c6dfe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
9 changes: 3 additions & 6 deletions src/pages/Availability.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,12 @@ export default function Availability() {
body: JSON.stringify(credentials),
}
);

if (response.ok) {
const result = await response.json();
const result = await response.json();
if (result.message.localeCompare('Availability updated') === 0) {
navigate('/dashboard');
}
}

// session management with dashboard
} else {
Expand All @@ -422,9 +422,7 @@ export default function Availability() {
console.error('Error:', error);
}
} else {

if (userEmail == null && userPW == null) {

if (guestEmail != null && guestPW != null) {
credentials.guest_id = parseInt(guestEmail);
credentials.guest_password = guestPW;
Expand Down Expand Up @@ -474,7 +472,6 @@ export default function Availability() {
}
};


return (
<div
className={`relative flex flex-col min-h-screen lg:h-[100vh] p-4 ${isDarkMode ? 'bg-[#3E505B]' : 'bg-[#F5F5F5]'}`}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ConfirmCreated.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function ConfirmCreated() {

const handleCopy = () => {
// Please uncomment this when the server does have HTTPS certifications

// navigator.clipboard
// .writeText(eventCode)
// .then(() => {
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ export default function Dashboard() {
};

const get_all_events = async () => {
const data = {
};
const data = {};

check_user(data);

Expand Down
2 changes: 0 additions & 2 deletions src/pages/Results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,9 @@ export default function Result() {
})
.then((response) => response.json())
.then((eventDetailsData) => {

// Update the state based on event details
// setEventDetails(eventDetailsData);
updateEventData(eventDetailsData);

})
.catch((error) => {
console.error('Error fetching data:', error);
Expand Down

0 comments on commit c1c6dfe

Please sign in to comment.