Skip to content

Commit b199367

Browse files
authored
fix: added props to all icons and added width and height defs to node icon (#8649)
* Updated icons to include props * Updated node icon to include width and height
1 parent 131322c commit b199367

52 files changed

Lines changed: 34 additions & 141 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/frontend/src/CustomNodes/GenericNode/components/nodeIcon/index.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,17 @@ export function NodeIcon({
3939
return (
4040
<div className="flex h-4 w-4 items-center justify-center">
4141
{isLucideIcon ? (
42-
<IconComponent strokeWidth={ICON_STROKE_WIDTH} name={iconName} />
42+
<IconComponent
43+
strokeWidth={ICON_STROKE_WIDTH}
44+
name={iconName}
45+
className="h-4 w-4"
46+
/>
4347
) : (
44-
<IconComponent name={iconName} iconColor={iconColor} />
48+
<IconComponent
49+
name={iconName}
50+
iconColor={iconColor}
51+
className="h-4 w-4"
52+
/>
4553
)}
4654
</div>
4755
);

src/frontend/src/icons/AWS/AWS.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ const SvgAWS = (props) => (
55
xmlns="http://www.w3.org/2000/svg"
66
xmlSpace="preserve"
77
id="Layer_1"
8-
x={0}
9-
y={0}
108
style={{
119
enableBackground: "new 0 0 304 182",
1210
}}

src/frontend/src/icons/AWSInverted/AWS.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ const SvgAWS = (props) => (
55
xmlns="http://www.w3.org/2000/svg"
66
xmlSpace="preserve"
77
id="Layer_1"
8-
x={0}
9-
y={0}
108
style={{
119
enableBackground: "new 0 0 304 182",
1210
}}

src/frontend/src/icons/AstraDB/AstraDB.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { stringToBool } from "@/utils/utils";
22

33
const AstraSVG = (props) => (
44
<svg
5-
{...props}
65
width="167"
76
height="68"
87
viewBox="0 0 167 68"
98
fill="none"
109
xmlns="http://www.w3.org/2000/svg"
10+
{...props}
1111
>
1212
<path
1313
d="M60.2338 0.25H0.000244141V67.75H60.2338L75.365 56.0752V11.9248L60.2338 0.25ZM11.6732 11.9248H63.692V56.0874H11.6732V11.9248Z"

src/frontend/src/icons/DuckDuckGo/DuckDuckGo.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ const SvgDuckDuckGo = ({ ...props }) => (
33
xmlns="http://www.w3.org/2000/svg"
44
viewBox="0 0 122.88 122.88"
55
{...props}
6-
height="1rem"
7-
width="1rem"
86
>
97
<defs>
108
<style>{".b{fill:#fff}"}</style>

src/frontend/src/icons/ElasticsearchStore/ElasticsearchLogo.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
const SvgElasticsearchLogo = (props) => (
22
<svg
33
xmlns="http://www.w3.org/2000/svg"
4-
width="24"
5-
height="24"
64
fill="none"
75
stroke="currentColor"
86
strokeLinecap="round"
97
strokeLinejoin="round"
108
strokeWidth="2"
119
className="icon icon-tabler icon-tabler-brand-elastic"
1210
viewBox="0 0 24 24"
11+
{...props}
1312
>
1413
<path stroke="none" d="M0 0h24v24H0z"></path>
1514
<path d="M14 2a5 5 0 015 5c0 .712-.232 1.387-.5 2 1.894.042 3.5 1.595 3.5 3.5 0 1.869-1.656 3.4-3.5 3.5.333.625.5 1.125.5 1.5a2.5 2.5 0 01-2.5 2.5c-.787 0-1.542-.432-2-1-.786 1.73-2.476 3-4.5 3a5 5 0 01-4.583-7 3.5 3.5 0 01-.11-6.992h.195a2.5 2.5 0 012-4c.787 0 1.542.432 2 1 .786-1.73 2.476-3 4.5-3zM8.5 9l-3-1"></path>

src/frontend/src/icons/Exa/Exa.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
export const SvgExa = (props) => (
2-
<svg
3-
xmlns="http://www.w3.org/2000/svg"
4-
width="400"
5-
height="400"
6-
viewBox="0 0 400 400"
7-
{...props}
8-
>
2+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" {...props}>
93
<path
104
fill="none"
115
fillOpacity="0"

src/frontend/src/icons/Firecrawl/FirecrawlLogo.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
const SvgFirecrawlLogo = (props) => (
22
<svg
33
viewBox="-33 0 255 255"
4-
width="24"
5-
height="24"
64
xmlns="http://www.w3.org/2000/svg"
75
xmlnsXlink="http://www.w3.org/1999/xlink"
86
preserveAspectRatio="xMidYMid"
7+
{...props}
98
>
109
<defs>
1110
<style>

src/frontend/src/icons/GitLoader/GitLoader.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const GitLoaderIcon = (props) => (
22
<svg
33
xmlns="http://www.w3.org/2000/svg"
4-
width="32"
5-
height="32"
64
viewBox="0 0 32 32"
75
fill="none"
86
{...props}

src/frontend/src/icons/GridHorizontal/GridHorizontalIcon.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ const SVGGridHorizontalIcon = (props) => {
22
return (
33
<svg
44
xmlns="http://www.w3.org/2000/svg"
5-
width="24"
6-
height="24"
75
viewBox="0 0 24 24"
86
fill="none"
97
stroke="currentColor"

0 commit comments

Comments
 (0)