diff --git a/components/lands/buildingTooltip.tsx b/components/lands/buildingTooltip.tsx index c663bfa8..fb03f371 100644 --- a/components/lands/buildingTooltip.tsx +++ b/components/lands/buildingTooltip.tsx @@ -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 = ({ diff --git a/components/lands/roadProps.tsx b/components/lands/roadProps.tsx index 24a5bcb1..6c17f752 100644 --- a/components/lands/roadProps.tsx +++ b/components/lands/roadProps.tsx @@ -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[]; @@ -21,7 +21,7 @@ export default function RoadProps({ tilesets, cityData, tileData, -}: IProps): ReactElement | null { +}: RoadItemProps): ReactElement | null { const buildingTexture = useMemo(() => { const texture = useLoader( TextureLoader,