Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
heybereket committed May 16, 2023
1 parent 93aa27d commit 954fc96
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
8 changes: 1 addition & 7 deletions components/modals/SignoutModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ const ModalBody = (props: { setOpen: Dispatch<SetStateAction<boolean>> }) => {
Are you sure you want to sign out of your current session?
</p>

<div className="border border-[#2A2A2A] bg-card rounded-lg px-1 py-2">
<p className="text-xs text-center text-lightGray">
{navigator.userAgent}
</p>
</div>

<div className="flex flex-col md:flex-row justify-center items-center gap-2">
<div className="flex flex-row justify-center items-center gap-2">
<div className="mt-4">
<button
type="button"
Expand Down
2 changes: 1 addition & 1 deletion components/modals/SignupModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const ModalBody = () => (

const ModalFooter = () => (
<>
<div className="flex flex-col md:flex-row justify-center items-center gap-2">
<div className="flex flex-row justify-center items-center gap-2">
<div className="mt-4">
<button
type="button"
Expand Down
2 changes: 1 addition & 1 deletion components/screens/marketplace/MarketplacePost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const MarketplacePost = (props: any) => {
});
}
});
}, [distance]);
}, [distance, props.marketplacePost.latitude, props.marketplacePost.longitude]);

return (
<div>
Expand Down
16 changes: 8 additions & 8 deletions pages/teams/[team]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,14 +423,14 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
},
});

const teamMembers = await db.user.findMany({
where: {
teamNumber: Number(team),
},
});

return { props: { user, teamMembers } };
return { props: { user } };
}

return { props: {} };
const teamMembers = await db.user.findMany({
where: {
teamNumber: Number(team),
},
});

return { props: { teamMembers } };
};

0 comments on commit 954fc96

Please sign in to comment.