Refactor: Make Store Icon on sideBar icon with same animated gradient like CustomComponents icon
This commit is contained in:
parent
96bb758124
commit
9b41432c96
2 changed files with 28 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import { InfinityIcon } from "lucide-react";
|
import { InfinityIcon } from "lucide-react";
|
||||||
import { forwardRef } from "react";
|
import { forwardRef } from "react";
|
||||||
|
import ForwardedIconComponent from "../../components/genericIconComponent";
|
||||||
|
|
||||||
export const GradientInfinity = forwardRef<
|
export const GradientInfinity = forwardRef<
|
||||||
SVGSVGElement,
|
SVGSVGElement,
|
||||||
|
|
@ -19,3 +20,28 @@ export const GradientInfinity = forwardRef<
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
export const GradientSave = forwardRef<
|
||||||
|
SVGSVGElement,
|
||||||
|
React.PropsWithChildren<{}>
|
||||||
|
>((props, ref) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<svg width="0" height="0" style={{ position: "absolute" }}>
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="grad2" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||||
|
<stop className="gradient-start" offset="0%" />
|
||||||
|
<stop className="gradient-end" offset="100%" />
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
<ForwardedIconComponent
|
||||||
|
name="Save"
|
||||||
|
stroke="url(#grad2)"
|
||||||
|
ref={ref}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ import { EvernoteIcon } from "../icons/Evernote";
|
||||||
import { FBIcon } from "../icons/FacebookMessenger";
|
import { FBIcon } from "../icons/FacebookMessenger";
|
||||||
import { GitBookIcon } from "../icons/GitBook";
|
import { GitBookIcon } from "../icons/GitBook";
|
||||||
import { GoogleIcon } from "../icons/Google";
|
import { GoogleIcon } from "../icons/Google";
|
||||||
import { GradientInfinity } from "../icons/GradientSparkles";
|
import { GradientInfinity, GradientSave } from "../icons/GradientSparkles";
|
||||||
import { HuggingFaceIcon } from "../icons/HuggingFace";
|
import { HuggingFaceIcon } from "../icons/HuggingFace";
|
||||||
import { IFixIcon } from "../icons/IFixIt";
|
import { IFixIcon } from "../icons/IFixIt";
|
||||||
import { MetaIcon } from "../icons/Meta";
|
import { MetaIcon } from "../icons/Meta";
|
||||||
|
|
@ -260,7 +260,7 @@ export const nodeIconsLucide: iconsType = {
|
||||||
advanced: Laptop2,
|
advanced: Laptop2,
|
||||||
chat: MessageCircle,
|
chat: MessageCircle,
|
||||||
embeddings: Fingerprint,
|
embeddings: Fingerprint,
|
||||||
saved_components: Save,
|
saved_components: GradientSave,
|
||||||
documentloaders: Paperclip,
|
documentloaders: Paperclip,
|
||||||
vectorstores: Layers,
|
vectorstores: Layers,
|
||||||
toolkits: Hammer,
|
toolkits: Hammer,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue