fixed the styling on the home marker

This commit is contained in:
csawatzky 2025-03-27 15:08:37 -06:00
parent d8b42c8050
commit 6755764c75
3 changed files with 10 additions and 6 deletions

View file

@ -6,11 +6,13 @@ import React from "react";
interface Props {
type?: "light" | "dark";
height?: number | string
width?: number | string
}
export default function HomeIcon(props: Props) {
const themeType = useThemeType();
const { type } = props;
const { type, height, width } = props;
const src = () => {
if (type) {
@ -20,5 +22,5 @@ export default function HomeIcon(props: Props) {
return themeType === "light" ? HomeIconDark : HomeIconLight;
};
return <ImgIcon alt="fields" src={src()} />;
return <ImgIcon alt="fields" src={src()} iconHeight={height} iconWidth={width} />;
}