Skip to content

Commit 2d0464d

Browse files
refactor: move sparkle icon metadata from meta.json to index.mdx and update SVG
1 parent a6e4230 commit 2d0464d

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

components/icons/Sparkle.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,13 @@ import * as React from "react"
22
import { SVGProps } from "react"
33

44
const Sparkle = (props: SVGProps<SVGSVGElement>) => (
5-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" {...props}>
6-
<g
7-
stroke="currentColor"
8-
strokeLinecap="round"
9-
strokeLinejoin="round"
10-
strokeWidth={1.333}
11-
>
12-
{/* Brain-like AI outline */}
13-
<path d="M4 8a4 4 0 1 1 8 0 4 4 0 1 1-8 0Z" />
14-
<path d="M8 4v1.333M8 10.667V12M4.934 5.267l.933.933M11.066 5.267l-.933.933M4.934 10.733l.933-.933M11.066 10.733l-.933-.933" />
15-
16-
{/* Sparkle */}
17-
<path d="M14 2.667l.4 1.2 1.2.4-1.2.4-.4 1.2-.4-1.2-1.2-.4 1.2-.4.4-1.2Z" />
18-
</g>
19-
</svg>
5+
<svg
6+
xmlns="http://www.w3.org/2000/svg"
7+
viewBox="0 0 256 256"
8+
{...props}
9+
>
10+
<path d="M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z" />
11+
</svg>
2012
)
2113

2214
export default Sparkle

content/docs/noco-ai/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 'Noco AI ☁'
33
description: 'Smarter Apps, Instantly Built with AI'
44
tags: ['Noco AI', 'Overview']
5+
icon: "sparkle"
56
keywords: ['Noco AI overview', 'NocoDB AI automation', 'AI-powered automation', 'NocoDB cloud AI']
67
---
78

content/docs/noco-ai/meta.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"title": "Noco AI",
33
"pages": [
4-
],
5-
"icon": "sparkle"
4+
]
65
}

0 commit comments

Comments
 (0)