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

Commit

Permalink
fix snake_case to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianMygind committed Apr 22, 2024
1 parent d203e92 commit 4a7d759
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions components/about-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import Typography from "@mui/material/Typography";
import CardActionArea from "@mui/material/CardActionArea";

interface AboutCardProps {
readonly image_name: string;
readonly imageName: string;
readonly name: string;
readonly children: ReactNode;
}

// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
const AboutCard: FC<AboutCardProps> = ({
image_name,
imageName,
name,
children,
}: AboutCardProps): ReactElement | null => {
Expand All @@ -25,7 +25,7 @@ const AboutCard: FC<AboutCardProps> = ({
<CardMedia
component="img"
height={200}
image={`/images/${image_name}`}
image={`/images/${imageName}`}
alt={`picture of ${name}`}
/>
<CardContent sx={{ height: 200 }}>
Expand Down
10 changes: 5 additions & 5 deletions components/about-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,28 @@ const AboutPage: FC = (): ReactElement | null => {
gameplay.
</Typography>
<Grid container spacing={2} justifyContent="center">
<AboutCard image_name="sebastian.jpg" name="Sebastian Mygind">
<AboutCard imageName="sebastian.jpg" name="Sebastian Mygind">
Sebastian Mygind, a 21-year-old computer science student at Aalborg
University Copenhagen, is one of the creators behind the ChessTeacher
chess web-app.
</AboutCard>
<AboutCard image_name="default_picture.jpg" name="Simon Woidmann">
<AboutCard imageName="default_picture.jpg" name="Simon Woidmann">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
venenatis ex magna, eget viverra sem viverra et. Pellentesque nec
porttitor sapien.
</AboutCard>
<AboutCard image_name="default_picture.jpg" name="Martin Kedmenec">
<AboutCard imageName="default_picture.jpg" name="Martin Kedmenec">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
venenatis ex magna, eget viverra sem viverra et. Pellentesque nec
porttitor sapien.
</AboutCard>
<AboutCard image_name="default_picture.jpg" name="Mads Heilmann">
<AboutCard imageName="default_picture.jpg" name="Mads Heilmann">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
venenatis ex magna, eget viverra sem viverra et. Pellentesque nec
porttitor sapien.
</AboutCard>
<AboutCard
image_name="default_picture.jpg"
imageName="default_picture.jpg"
name="Kristiyan Mariyan Georgiev"
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
Expand Down

0 comments on commit 4a7d759

Please sign in to comment.