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

Remove unused var #53

Merged
merged 1 commit into from
Feb 5, 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
3 changes: 1 addition & 2 deletions frontend/src/app/home/Pet/Image.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/* eslint-disable @next/next/no-img-element */
"use client";

import { Pet, PetParts } from "@/app/home/Pet";
import { PetParts } from "@/app/home/Pet";
import { PetAction } from "@/app/home/Pet/Actions";

export interface PetImageProps {
pet: Pet;
selectedAction?: PetAction;
petParts: PetParts;
avatarStyle?: boolean;
Expand Down
13 changes: 1 addition & 12 deletions frontend/src/app/home/Pet/ShufflePetImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ import {
NEXT_PUBLIC_FACE_OPTIONS,
} from "@/utils/env";

const defaultPet: Pet = {
name: "Unknown",
birthday: 0,
energy_points: 0,
parts: {
body: 0,
ear: 0,
face: 0,
},
};

export function ShufflePetImage({
petParts,
setPetParts,
Expand All @@ -39,7 +28,7 @@ export function ShufflePetImage({

return (
<div className="flex flex-col gap-6 self-center">
<PetImage pet={defaultPet} petParts={petParts} />
<PetImage petParts={petParts} />
<ShuffleButton handleShuffle={handleShuffle} />
</div>
);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/app/home/Pet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export function Pet({ pet, setPet }: PetProps) {
<div className="flex flex-row self-center gap-12">
<div className="flex flex-col gap-4 w-[360px]">
<PetImage
pet={pet}
selectedAction={selectedAction}
petParts={pet.parts}
avatarStyle
Expand Down
Loading