Skip to content

Commit e076b0f

Browse files
committed
Give .chart files their own bar-chart icon
1 parent 7987061 commit e076b0f

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

apps/sim/components/icons/document-icons.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,26 @@ export function VideoIcon(props: SVGProps<SVGSVGElement>) {
139139
)
140140
}
141141

142+
export function ChartFileIcon(props: SVGProps<SVGSVGElement>) {
143+
return (
144+
<svg
145+
viewBox='0 0 24 24'
146+
fill='none'
147+
stroke='currentColor'
148+
strokeWidth='1.5'
149+
strokeLinecap='round'
150+
strokeLinejoin='round'
151+
xmlns='http://www.w3.org/2000/svg'
152+
{...props}
153+
>
154+
<path d='M3 3v17a1 1 0 0 0 1 1h17' />
155+
<rect x='7' y='12' width='3' height='6' rx='0.5' />
156+
<rect x='12.5' y='8' width='3' height='10' rx='0.5' />
157+
<rect x='18' y='5' width='3' height='13' rx='0.5' />
158+
</svg>
159+
)
160+
}
161+
142162
export function HtmlIcon(props: SVGProps<SVGSVGElement>) {
143163
return (
144164
<svg
@@ -277,6 +297,10 @@ export function getDocumentIcon(
277297
return PptxIcon
278298
}
279299

300+
if (mimeType === 'text/x-sim-chart' || extension === 'chart') {
301+
return ChartFileIcon
302+
}
303+
280304
if (mimeType === 'text/html' || extension === 'html' || extension === 'htm') {
281305
return HtmlIcon
282306
}

0 commit comments

Comments
 (0)