Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(control-ui): r2-b1 consolidate IconShield export

Josué33b14a9c3a2e
diff --git a/control-ui/components/Sidebar/icons.tsx b/control-ui/components/Sidebar/icons.tsx
index 6d339631e..1886619f2 100644
--- a/control-ui/components/Sidebar/icons.tsx
+++ b/control-ui/components/Sidebar/icons.tsx
@@ -44,25 +44,6 @@ export function IconWorkflow() {
)
}
-export function IconShield() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- width="18"
- height="18"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth="2"
- strokeLinecap="round"
- strokeLinejoin="round"
- >
- <path d="M12 3l7 3v5c0 4.5 -3 7.5 -7 9c-4 -1.5 -7 -4.5 -7 -9V6l7 -3z" />
- <path d="M9 12l2 2l4 -4" />
- </svg>
- )
-}
-
export function IconOutputs() {
return (
<svg
@@ -422,6 +403,8 @@ export function IconShield({
createBadge = false,
relationshipRole,
}: RelationshipRoleIconProps = {}) {
+ const isRelationshipIcon = relationshipRole !== undefined
+
return (
<svg
xmlns="http://www.w3.org/2000/svg"
@@ -438,7 +421,14 @@ export function IconShield({
data-create-badge={createBadge ? 'true' : undefined}
data-icon="shield"
>
- <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z" />
+ {isRelationshipIcon ? (
+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z" />
+ ) : (
+ <>
+ <path d="M12 3l7 3v5c0 4.5 -3 7.5 -7 9c-4 -1.5 -7 -4.5 -7 -9V6l7 -3z" />
+ <path d="M9 12l2 2l4 -4" />
+ </>
+ )}
{createBadge ? <IconCreateBadge /> : null}
</svg>
)
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index d3c00d762..186b759a2 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.434",
+ "version": "0.1.435",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.434",
+ "version": "0.1.435",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/llm-providers": "file:../packages/llm-providers",
diff --git a/control-ui/package.json b/control-ui/package.json
index e66af8377..414f82f1d 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.434",
+ "version": "0.1.435",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",