Skip to content

Commit 7ebb495

Browse files
committed
fix(deps): Replace Lucide’s GitHub icons with svgs
1 parent 573e9ae commit 7ebb495

7 files changed

Lines changed: 64 additions & 13 deletions

File tree

Lines changed: 19 additions & 0 deletions
Loading
Lines changed: 33 additions & 0 deletions
Loading

src/assets/checkmark.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/features/auth/components/GitHubAuthenticationButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import './GitHubAuthenticationButton.css';
22
import { cx } from 'class-variance-authority';
3-
import { GithubIcon } from 'lucide-react';
43
import { MouseEventHandler } from 'react';
54

65
export function GitHubAuthenticationButton({
@@ -18,7 +17,7 @@ export function GitHubAuthenticationButton({
1817
className={cx('github-signin-btn', disabled && 'opacity-50')}
1918
type="button"
2019
>
21-
<GithubIcon className="github-icon" />
20+
<img src="/github/GitHub_Invertocat_White.svg" alt="GitHub Logo" className="github-icon" />
2221
{text}
2322
</button>
2423
</a>

src/features/instance/applications/components/NewApplication/ImportInstructions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Input } from '@/components/ui/input';
1010
import { Separator } from '@/components/ui/separator';
1111
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
1212
import { Link } from '@tanstack/react-router';
13-
import { GithubIcon, LinkIcon, PackageIcon, RocketIcon } from 'lucide-react';
13+
import { GitMergeIcon, LinkIcon, PackageIcon, RocketIcon } from 'lucide-react';
1414
import { useCallback } from 'react';
1515
import { Control, FormState, UseFormSetValue, UseFormWatch } from 'react-hook-form';
1616
import { z } from 'zod';
@@ -46,7 +46,7 @@ export function ImportInstructions({
4646
<Tabs value={importSource} onValueChange={setImportSource}>
4747
<TabsList className="grid w-full grid-cols-3">
4848
<TabsTrigger value="git">
49-
<GithubIcon className="w-4 h-4 mr-2" />
49+
<GitMergeIcon className="w-4 h-4 mr-2" />
5050
Git
5151
</TabsTrigger>
5252
<TabsTrigger value="npm">

src/features/instance/applications/components/NewApplication/TemplateInstructions.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Label } from '@/components/ui/label';
66
import { RadioGroup, RadioGroupItem } from '@/components/ui/radioGroup';
77
import { Separator } from '@/components/ui/separator';
88
import { onClickStopPropagation } from '@/lib/onClickStopPropagation';
9-
import { GithubIcon, RocketIcon } from 'lucide-react';
9+
import { RocketIcon } from 'lucide-react';
1010
import { Control, FormState } from 'react-hook-form';
1111
import { z } from 'zod';
1212
import { NewApplicationSchema } from './schema';
@@ -48,16 +48,20 @@ export function TemplateInstructions({
4848
className="flex flex-col gap-3 p-4 border-2 rounded-lg cursor-pointer hover:bg-accent peer-data-[state=checked]:border-green peer-data-[state=checked]:bg-primary/5"
4949
>
5050
<div>
51-
<div className="mb-1 flex items-center gap-2">
52-
<span>{template.name}</span>
51+
<div className="mb-1 flex items-center gap-2 justify-between">
52+
<div>{template.name}</div>
5353
<a
5454
href={template.githubUrl}
5555
target="_blank"
5656
rel="noopener noreferrer"
5757
onClick={onClickStopPropagation}
58-
className="text-muted-foreground hover:text-white transition-colors -m-4 p-4"
58+
className="opacity-70 hover:opacity-100 transition-colors -m-4 p-4"
5959
>
60-
<GithubIcon className="w-4 h-4" />
60+
<img
61+
src="/github/GitHub_Lockup_White.svg"
62+
alt="GitHub"
63+
className="h-4"
64+
/>
6165
</a>
6266
</div>
6367
<p className="text-muted-foreground text-sm">

src/index.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@
198198
--color-purple-dark-to-light-gradient: var(--purple-dark-to-light-gradient);
199199

200200
--shadow-deep: 1px 2px 4px 0px var(--black-dark);
201-
--checkmark-icon: url('@/assets/checkmark.svg');
202201
--color-sidebar-ring: var(--sidebar-ring);
203202
--color-sidebar-border: var(--sidebar-border);
204203
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);

0 commit comments

Comments
 (0)