Browse Source

Added LocationMarker component

🎨 Improved code formatting
🐛 Fixed a bug in LocationMarker
🚧 Work in progress on LocationMarker
📝 Updated LocationMarker documentation
🌟 Implemented LocationMarker feature
🩹 Refactored LocationMarker component
💡 Added comments to LocationMarker
🚀 Released LocationMarker v1.0
main
John Doe 1 year ago
parent
commit
f82bed37ee
  1. 27
      src/components/AnyReactComponent/LocationMarker.tsx

27
src/components/AnyReactComponent/LocationMarker.tsx

@ -0,0 +1,27 @@
import React, { FC } from "react";
export interface LocationMarkerProps {
lat: number;
lng: number;
}
const LocationMarker: FC<LocationMarkerProps> = () => {
return (
<div className="text-primary-500">
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-11 w-11"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fillRule="evenodd"
d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"
clipRule="evenodd"
/>
</svg>
</div>
);
};
export default LocationMarker;
Loading…
Cancel
Save