fixed the styling on the home marker
This commit is contained in:
parent
d8b42c8050
commit
6755764c75
3 changed files with 10 additions and 6 deletions
|
|
@ -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} />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue