We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89fd217 commit 80f924fCopy full SHA for 80f924f
components/LanguageButton.tsx
@@ -2,9 +2,13 @@ import Link from 'next/link';
2
import Button from './Button';
3
4
function LanguageButton({ language }: { language: string }) {
5
+ if (language == "HTML") {
6
+ language="HTML5"
7
+ }
8
+ const url = `https://cdn.simpleicons.org/${language.toLowerCase()}/default`;
9
return (
10
<Link href={`/repos/${language.toLowerCase()}`}>
- <Button>{language}</Button>
11
+ <Button>{language} <img className='ml-1 h-5 w-5' src={url} /></Button>
12
</Link>
13
);
14
}
0 commit comments