Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/data/guestbook.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
[
{
"componentName": "TreeIcon",
"contributor": "Nityesh Agarwal",
"date": "2025-04-30T12:00:00.000Z",
"githubUsername": "nityeshaga",
"id": "tree-icon",
"message": "Growing together through code, branching out with new ideas!"
},{
"componentName": "MusicNoteIcon",
"contributor": "Veda Bhalla",
"date": "2025-06-02T12:13:37.000Z",
Expand Down
18 changes: 18 additions & 0 deletions src/icons/TreeIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react";
import { IconProps } from "../types";

const TreeIcon: React.FC<IconProps> = ({ color = "currentColor", ...props }) => {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add doc strings to clarify this?

return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill={color}
{...props}
>
<path d="M12 2L8 8H11V12H8L12 18L16 12H13V8H16L12 2Z" />
<rect x="11" y="18" width="2" height="4" />
</svg>
);
};

export default TreeIcon;
2 changes: 2 additions & 0 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SmileyIcon from './SmileyIcon';
import CompassIcon from './CompassIcon';
import RobotIcon from './RobotIcon';
import MoonIcon from './MoonIcon';
import TreeIcon from './TreeIcon';
import PlanetIcon from './PlanetIcon';
import CoffeeIcon from './CoffeeIcon';
import BookIcon from './BookIcon';
Expand All @@ -15,6 +16,7 @@ const iconComponents: Record<string, React.FC<any>> = {
CompassIcon,
RobotIcon,
MoonIcon,
TreeIcon
PlanetIcon,
CoffeeIcon,
BookIcon,
Expand Down