Skip to content

Commit

Permalink
fix: #80 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pablitoo1 committed May 10, 2024
1 parent ca74327 commit 73132c1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 19 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/material": "^5.15.16",
"@mui/material": "^5.15.17",
"axios": "^1.6.8",
"leaflet": "^1.9.4",
"leaflet-defaulticon-compatibility": "^0.1.2",
Expand Down
3 changes: 1 addition & 2 deletions src/app/(role_all)/conference/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default function ConferencePage() {
useEffect(() => {
const fetchRole = async () => {
const role = await getRole();
console.log(role);
setUserRole(role);
};
fetchRole();
Expand All @@ -47,7 +46,7 @@ export default function ConferencePage() {

useEffect(() => {
refetch();
}, [update]);
}, [update]);

return (
<Page>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function MyConferencePage({

useEffect(() => {
refetch();
}, [update]);
}, [update]);

return (
<Page className="py-10">
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/List/ListItemImage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import APIImageComponent, { LogoInterface } from "@/hooks/imageAPI";
import APIImageComponent, { ImageInterface, LogoInterface } from "@/hooks/imageAPI";
import Link from "next/link";

export default function ListItemImage({
Expand All @@ -8,7 +8,7 @@ export default function ListItemImage({
className,
}: {
href: string;
logo: LogoInterface;
logo: LogoInterface | ImageInterface;
children: React.ReactNode;
className?: string;
}) {
Expand Down
13 changes: 8 additions & 5 deletions src/components/conference/SignUpWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ export default function SignUpWarning({
<div onClick={() => {setSignUpWarning(false); setTempId && setTempId(-1)}} className="absolute inset-0 bg-darkblue opacity-80"></div>
<div className="flex flex-col justify-center items-center w-64 sm:w-96 border-2 border-black text-black bg-close2White rounded-xl space-y-2 p-4 z-20">
<h1 className="text-xl">Zapis na konferencję</h1>
<p className="text-sm text-center font-sans">
Czy na pewno chcesz zapisać się na konferencję?
<br />
Organizator otrzyma dostęp do twoich danych.
</p>
<div className="flex flex-col text-xs xs:text-sm text-center font-sans">
<p>
Czy na pewno chcesz zapisać się na konferencję?
</p>
<p>
Organizator otrzyma dostęp do twoich danych.
</p>
</div>
<div>
<button onClick={confirmSignUp} className="bg-blue text-close2White text-sm font-medium rounded-3xl px-4 py-2 mt-2 w-fit">
Zapisz się
Expand Down

0 comments on commit 73132c1

Please sign in to comment.