Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Sep 14, 2023
1 parent 45f9d80 commit 1ab9307
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion components/lands/buildingTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React, { FunctionComponent } from "react";
import styles from "../../styles/components/tooltip.module.css";
import { Coord } from "../../types/land";

type BuildingTooltipProps = {
building: BuildingsInfo | null;
pos: { x: number; y: number };
pos: Coord;
};

const BuildingTooltip: FunctionComponent<BuildingTooltipProps> = ({
Expand Down
4 changes: 2 additions & 2 deletions components/lands/roadProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Tileset } from "../../types/ldtk";
import { useLoader } from "@react-three/fiber";
import RoadItem from "./roadItem";

type IProps = {
type RoadItemProps = {
tilesets: Tileset[];
cityData: (RoadObjects | null)[][];
tileData: TileData[];
Expand All @@ -21,7 +21,7 @@ export default function RoadProps({
tilesets,
cityData,
tileData,
}: IProps): ReactElement | null {
}: RoadItemProps): ReactElement | null {
const buildingTexture = useMemo(() => {
const texture = useLoader(
TextureLoader,
Expand Down

0 comments on commit 1ab9307

Please sign in to comment.