Skip to content

Commit

Permalink
refactor: remove useless variables
Browse files Browse the repository at this point in the history
  • Loading branch information
NoeTerrier committed Mar 16, 2024
1 parent e07e469 commit 724ebde
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/src/pages/association.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import { queryTranslations } from "@/locales";
import { Association, SocialLink } from "@/types/aliases";
import { readItems, readSingleton } from "@directus/sdk";
import { GetServerSideProps, InferGetServerSidePropsType } from "next";
import { useRouter } from "next/router";

export default function AssociationPage(
props: InferGetServerSidePropsType<typeof getServerSideProps>
) {
const router = useRouter();
return (
<AssociationDescription
association={props.association}
Expand All @@ -21,7 +19,7 @@ export default function AssociationPage(
export const getServerSideProps: GetServerSideProps<{
association: Association;
social_links: SocialLink[];
}> = populateLayoutProps(async (context) => {
}> = populateLayoutProps(async (_) => {
return {
props: {
association: await directus().request(
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/commissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Commissions(

export const getServerSideProps: GetServerSideProps<{
news: Commission[];
}> = populateLayoutProps(async (context) => {
}> = populateLayoutProps(async (_) => {
const c = await directus().request(
readItems("commissions", {
fields: ["*", { translations: ["*"] }],
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const getServerSideProps: GetServerSideProps<{
social_links: SocialLink[];
news: News[];
committee: (AssociationMembership & { member: Member })[];
}> = populateLayoutProps(async (context) => {
}> = populateLayoutProps(async (_) => {
return {
props: {
association: await directus().request(
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/news.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function NewsComponent(

export const getServerSideProps: GetServerSideProps<{
news: News[];
}> = populateLayoutProps(async (context) => {
}> = populateLayoutProps(async (_) => {
return {
props: {
news: await directus().request(
Expand Down

0 comments on commit 724ebde

Please sign in to comment.