Skip to content

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBrigati committed Dec 11, 2023
1 parent a234734 commit bc1e7a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion frontend/src/components/starmap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import { useState } from 'react';
import { allPlanets, PlanetProps } from 'fakeData/planets';
import styles from './StarMap.module.scss';

const StarMap = ({ planet, setPlanet }: { planet: string, setPlanet: (planet: PlanetProps) => void }) => {
const StarMap = ({
planet,
setPlanet
}: {
planet: string,
setPlanet?: (planet: PlanetProps) => void
}) => {
const [hoveredPlanet, setHoveredPlanet] = useState<string | null>(null);

const handlePlanetClick = (planetNumber: number) => {
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/pages/nft-view/NFTViewMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import styles from './NFTViewMobile.module.scss';
interface NFTViewProps {
nft: {
id: number;
background_color: string;
image: string;
biome: string;
character: string;
Expand Down Expand Up @@ -61,7 +60,7 @@ export const NFTViewMobile = ({ nft }: NFTViewProps) => {
</div>

<div className={styles.star__map}>
<StarMap planet={"fire"} />
<StarMap planet={nft.biome} />
</div>
</div>

Expand Down

0 comments on commit bc1e7a4

Please sign in to comment.