Skip to content

Commit

Permalink
Fix hydratation error staff page (Person)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothee31 committed Feb 6, 2025
1 parent e5e785d commit 73faa47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Person/Person.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import useWindowSize from "@/hooks/useWindowSize";
import { GrFormView } from "react-icons/gr";
import { PersonProps } from "@/components/Person/PersonProps";
import classNames from "classnames";
import ClientOnly from "@/helpers/ClientOnly";

const PersonCard = ({
person,
Expand Down Expand Up @@ -47,11 +48,11 @@ const Person = ({
"rounded-full": appearance === "speaker",
"[clip-path:polygon(50%_0%,100%_25%,100%_75%,50%_100%,0%_75%,0%_25%)]":
appearance === "program",
},
}
);

return (
<>
<ClientOnly>
{width < 768 ? (
<div className="flex flex-row gap-2">
<Image
Expand Down Expand Up @@ -85,7 +86,7 @@ const Person = ({
<PersonCard person={person} appearance={appearance} />
</div>
)}
</>
</ClientOnly>
);
};

Expand Down

0 comments on commit 73faa47

Please sign in to comment.