Skip to content

Commit

Permalink
dotnet logo (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-garcia authored Dec 12, 2023
1 parent fe50617 commit eef528a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eight-mangos-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@spotlightjs/overlay': minor
---

dotnet logo
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ReactComponent as AstroIcon } from 'platformicons/svg/astro.svg';
import { ReactComponent as DefaultIcon } from 'platformicons/svg/default.svg';
import { ReactComponent as DotNetIcon } from 'platformicons/svg/dotnet.svg';
import { ReactComponent as JavaScriptIcon } from 'platformicons/svg/javascript.svg';
import { ReactComponent as DotNetMauiIcon } from 'platformicons/svg/maui.svg';
import { ReactComponent as NodeIcon } from 'platformicons/svg/nodejs.svg';
import { ReactComponent as PhpIcon } from 'platformicons/svg/php.svg';
import { ReactComponent as PythonIcon } from 'platformicons/svg/python.svg';
Expand All @@ -10,7 +12,7 @@ import { SentryEvent } from '../types';

import { ComponentPropsWithoutRef } from 'react';

type Platform = 'python' | 'javascript' | 'node' | 'ruby' | string;
type Platform = 'python' | 'javascript' | 'node' | 'ruby' | 'csharp' | string;

export default function PlatformIcon({
platform,
Expand All @@ -36,6 +38,11 @@ export default function PlatformIcon({
return <NodeIcon width={size} height={size} {...props} />;
case 'php':
return <PhpIcon width={size} height={size} {...props} />;
case 'dotnet':
case 'csharp': // event.platform is 'csharp'
return <DotNetIcon width={size} height={size} {...props} />;
case 'dotnet.maui':
return <DotNetMauiIcon width={size} height={size} {...props} />;
default:
return <DefaultIcon width={size} height={size} {...props} />;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export function sdkToPlatform(name: string) {
if (name.includes('python')) return 'python';
if (name.includes('php')) return 'php';
if (name.includes('ruby')) return 'ruby';
if (name.includes('dotnet')) return 'dotnet';
return 'unknown';
}

0 comments on commit eef528a

Please sign in to comment.