diff --git a/app/components/seafood-delights/seafood-button.tsx b/app/components/seafood-delights/seafood-button.tsx index 8d5486f..0192216 100644 --- a/app/components/seafood-delights/seafood-button.tsx +++ b/app/components/seafood-delights/seafood-button.tsx @@ -7,10 +7,13 @@ export default function SeafoodButton() { // set maxShrimp based on image size so not to overflow const maxShrimp = 83; - const shrimpRainValues: number[] = []; - for (let i = 0; i < maxShrimp; i++) { - shrimpRainValues.push(Math.floor(Math.random() * 200)); - } + const [shrimpRainValues] = useState(() => { + const shrimpRainValuesArr: number[] = []; + for (let i = 0; i < maxShrimp; i++) { + shrimpRainValuesArr.push(Math.floor(Math.random() * 200)); + } + return shrimpRainValuesArr; + }); function itsRainingShrimp() { setShowShrimpOverlay(true); diff --git a/app/components/seafood-delights/seafood-delights.tsx b/app/components/seafood-delights/seafood-delights.tsx index 0c13e48..dbae70f 100644 --- a/app/components/seafood-delights/seafood-delights.tsx +++ b/app/components/seafood-delights/seafood-delights.tsx @@ -7,8 +7,8 @@ export default function SeafoodDelights() {
We are Shrimp Squad and we make things.
- There's no project we can't mantis punch. Shrimply take a look - at what we're known for. + There's no project we can't mantis punch. Shrimply + take a look at what we're known for.- The player starts with a "Mother Tree" which acts as the core - component of the player's ecosystem. Trees grow roots that can - connect together, allowing them to communicate and send - resources between each other. Mycelial networks function - similarly for fungi. + The player starts with a "Mother Tree" which acts as + the core component of the player's ecosystem. Trees grow + roots that can connect together, allowing them to communicate + and send resources between each other. Mycelial networks + function similarly for fungi.
Biotama aims to be educational as well as fun. It will feature diff --git a/app/components/shrimp-projects/project-list/project-list.tsx b/app/components/shrimp-projects/project-list/project-list.tsx index 2c7381f..f8b065e 100644 --- a/app/components/shrimp-projects/project-list/project-list.tsx +++ b/app/components/shrimp-projects/project-list/project-list.tsx @@ -5,7 +5,7 @@ export default function ProjectList({ handleProjectClick, }: { projects: ProjectListProps[]; - handleProjectClick: any; + handleProjectClick: (project: string) => void; }) { const projectList = projects.map((project) => (