diff --git a/frontend/src/Components/PetDetails.tsx b/frontend/src/Components/PetDetails.tsx
index a98cf00..72e6e47 100644
--- a/frontend/src/Components/PetDetails.tsx
+++ b/frontend/src/Components/PetDetails.tsx
@@ -1,8 +1,8 @@
import { Pet } from "../lib/api/usePetApi";
import PetDetailsProgressBar from "./PetDetailsProgressBar";
-const PetDetails = (props: {pet: Pet, petImageSrc: string}) => {
- const {pet, petImageSrc} = props;
+const PetDetails = (props: { pet: Pet; petImageSrc: string }) => {
+ const { pet, petImageSrc } = props;
if (!pet.state) return;
const petState = pet.state;
@@ -10,16 +10,32 @@ const PetDetails = (props: {pet: Pet, petImageSrc: string}) => {
return (
<>
-
+
>
);
-}
+};
export default PetDetails;
diff --git a/frontend/src/Components/PetDetailsProgressBar.tsx b/frontend/src/Components/PetDetailsProgressBar.tsx
index edc48c8..da3ff6c 100644
--- a/frontend/src/Components/PetDetailsProgressBar.tsx
+++ b/frontend/src/Components/PetDetailsProgressBar.tsx
@@ -4,14 +4,18 @@ import { IProgressBarProps } from "react-progressbar-fancy/build/ProgressBar/Pro
/**
* See https://github.com/RavinRau/react-progressbar-fancy
*/
-const PetDetailsProgressBar = (props: {value?: number, color: IProgressBarProps["progressColor"]}) => {
+const PetDetailsProgressBar = (props: {
+ labelName: string;
+ value?: number;
+ color: IProgressBarProps["progressColor"];
+}) => {
return (
<>
{props.value != undefined && (
-
{props.value}
+
{props.labelName}
);
-}
+};
export default PetDetailsProgressBar;