Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treure mentides #22

Merged
merged 7 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 0 additions & 137 deletions src/app/accountrequest/page.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions src/app/api/accountrequest/route.ts

This file was deleted.

9 changes: 6 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export default async function Home() {
</Link>
</div>
</div> */}
<div className="overflow-hidden h-fit rounded-lg border border-gray-200 order-first md:order-last mb-4">
<div className="bg-emerald-100 px-6 py-4">
<p className="font-semibold py-3 flex items-center gap-1.5">
<div className="overflow-hidden h-fit rounded-lg border border-gray-200 order-first mb-4">
<div className="bg-pink-100 px-6 py-4">
<p className="</div>font-semibold py-3 flex items-center gap-1.5">
<HomeIcon className="w-4 h-4" />
Inici
</p>
Expand All @@ -104,6 +104,9 @@ export default async function Home() {
</Link>
</div>
</div>
</div>

<div className="grid grid-cols-1 md:grid-cols-3 gap-y-4 md:gap-x-4 py-6">
{subjects.map((subject, index) => {
return (
<Link
Expand Down
3 changes: 0 additions & 3 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ const Navbar = async () => {
<Link href="/sign-in" className={buttonVariants()}>
Sign In
</Link>
<Link href="/accountrequest" className={`${buttonVariants()} ml-2`}>
Account Request
</Link>
</div>
)}
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/SubscribeLeaveToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const SubscribeLeaveToggle: FC<SubscribeLeaveToggleProps> = ({ subjectId, subjec

return toast({
title: `T'has subscrit als apunts ${subjectArticle}${subjectName}!`,
description: "Ara rebràs notificacions quan es publiquin apunts.", // TODO: Això és mentida per ara
description: "",
});
},
});
Expand Down Expand Up @@ -87,7 +87,7 @@ const SubscribeLeaveToggle: FC<SubscribeLeaveToggleProps> = ({ subjectId, subjec

return toast({
title: `Has donat de baixa la teva subscripció als apunts ${subjectArticle}${subjectName}!`,
description: "Deixaràs de rebre notificacions quan es publiquin apunts.", // TODO: Això és mentida per ara
description: "",
});
},
});
Expand Down
4 changes: 0 additions & 4 deletions src/components/UserAccountNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ const UserAccountNav: FC<UserAccountNavProps> = ({ user }) => {
<Link href="/">Inici</Link>
</DropdownMenuItem>

<DropdownMenuItem asChild>
<Link href="/settings">Preferències</Link>
</DropdownMenuItem>

<DropdownMenuItem asChild>
<Link href="/privacyandterms">Privacitat i Termes de Servei</Link>
</DropdownMenuItem>
Expand Down
1 change: 0 additions & 1 deletion src/components/renderers/CustomFileRenderer.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/lib/validators/accountrequest.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ export default withAuth(
{
callbacks: {
authorized: ({ req, token }) => {
if (req.nextUrl.pathname && req.nextUrl.pathname.includes('/accountrequest')){
return false
}
if (
req.nextUrl.pathname &&
req.nextUrl.pathname.startsWith('/') &&
Expand Down