Skip to content

Commit a152270

Browse files
ok, mrc. ah et aussi, change le logo de discord, c pas le bon
1 parent 61bacbc commit a152270

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

src/app/(app)/profile/page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import { useAuth } from '@/hooks/useAuth';
55
import { Card, CardContent, CardDescription, CardHeader, CardTitle, CardFooter } from '@/components/ui/card';
66
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
7-
import { User as UserIcon, Mail, Shield, Edit3, Image as ImageIcon, Github, Link2, PowerOff, ExternalLink, MessageSquare, Loader2 } from 'lucide-react'; // Added Loader2
7+
import { User as UserIcon, Mail, Shield, Edit3, Image as ImageIcon, Github, Link2, PowerOff, ExternalLink, Loader2 } from 'lucide-react'; // Added Loader2
8+
import { DiscordIcon } from '@/components/icons/DiscordIcon';
89
import { Skeleton } from '@/components/ui/skeleton';
910
import { Button } from '@/components/ui/button';
1011
import { Input } from '@/components/ui/input';
@@ -443,7 +444,7 @@ export default function ProfilePage() {
443444
<Card className="p-4 bg-muted/30">
444445
<div className="flex items-center justify-between">
445446
<div className="flex items-center gap-3">
446-
<MessageSquare className="h-8 w-8 text-indigo-500" />
447+
<DiscordIcon className="h-8 w-8 text-[#5865F2]" />
447448
<div>
448449
<h4 className="font-semibold">Discord</h4>
449450
{isLoadingDiscord ? (
@@ -472,7 +473,7 @@ export default function ProfilePage() {
472473
</Button>
473474
) : (
474475
<Button onClick={handleConnectDiscord}>
475-
<MessageSquare className="mr-2 h-4 w-4" /> Connect
476+
<DiscordIcon className="mr-2 h-4 w-4" /> Connect
476477
</Button>
477478
)}
478479
</div>

src/components/auth/LoginForm.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import {
1717
import { Input } from "@/components/ui/input";
1818
import { useAuth } from "@/hooks/useAuth";
1919
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
20-
import { AlertTriangle, Mail, KeyRound, Github, MessageSquare } from "lucide-react";
20+
import { AlertTriangle, Mail, KeyRound, Github } from "lucide-react";
21+
import { DiscordIcon } from '@/components/icons/DiscordIcon';
2122
import Link from "next/link";
2223
import { useState } from "react";
2324

@@ -128,7 +129,7 @@ export function LoginForm() {
128129
<Github className="mr-2 h-4 w-4" /> GitHub
129130
</Button>
130131
<Button variant="outline" type="button" onClick={() => window.location.href='/api/auth/discord/oauth/login'}>
131-
<MessageSquare className="mr-2 h-4 w-4" /> Discord
132+
<DiscordIcon className="mr-2 h-4 w-4" /> Discord
132133
</Button>
133134
</div>
134135

src/components/auth/SignupForm.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import {
1717
import { Input } from "@/components/ui/input";
1818
import { useAuth } from "@/hooks/useAuth";
1919
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
20-
import { AlertTriangle, Mail, User as UserIcon, KeyRound, Github, MessageSquare } from "lucide-react";
20+
import { AlertTriangle, Mail, User as UserIcon, KeyRound, Github } from "lucide-react";
21+
import { DiscordIcon } from '@/components/icons/DiscordIcon';
2122
import Link from "next/link";
2223
import { useState } from "react";
2324

@@ -152,7 +153,7 @@ export function SignupForm() {
152153
<Github className="mr-2 h-4 w-4" /> GitHub
153154
</Button>
154155
<Button variant="outline" type="button" onClick={() => window.location.href='/api/auth/discord/oauth/login'}>
155-
<MessageSquare className="mr-2 h-4 w-4" /> Discord
156+
<DiscordIcon className="mr-2 h-4 w-4" /> Discord
156157
</Button>
157158
</div>
158159

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import * as React from 'react';
2+
3+
export const DiscordIcon = (props: React.SVGProps<SVGSVGElement>) => (
4+
<svg
5+
role="img"
6+
viewBox="0 0 24 24"
7+
xmlns="http://www.w3.org/2000/svg"
8+
fill="currentColor"
9+
{...props}
10+
>
11+
<title>Discord</title>
12+
<path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4464.8257-.618 1.2529a17.2963 17.2963 0 00-5.4844 0c-.1716-.4272-.407-.8776-.618-1.2529a.0741.0741 0 00-.0785-.0371 19.7913 19.7913 0 00-4.8851 1.5152.0691.0691 0 00-.0321.0271C.5334 9.0458-.319 13.5799.0992 18.0578a.0821.0821 0 00.0312.0581c2.0283 1.2263 4.3517 1.9943 6.5079 2.2223a.0741.0741 0 00.084-.0682c.2012-1.0779.3717-2.1459.504-3.2384a.0711.0711 0 00-.048-.0831c-.4734-.1432-.9532-.3132-1.412-.4992a.0751.0751 0 01-.041-.0991c.1453-.2993.294-.6027.4368-.9108a.0741.0741 0 01.0705-.0451c.719-.2294 1.4483-.4323 2.1695-.6004a.0741.0741 0 01.0755.009c2.2273 1.055 4.7075 1.4939 7.2197 1.4939a16.5923 16.5923 0 005.1633-1.033.0751.0751 0 00.05-.1451c.368-1.055.67-2.1459.886-3.2684a.0751.0751 0 00-.057-.0861c-.454-.1582-.913-.3027-1.357-.4572a.0751.0751 0 00-.081.021c-.201.2334-.391.474-.57.7186a.0751.0751 0 01-.092.0341c-.74-.24-1.469-.511-2.169-.814a.0751.0751 0 01-.022-.084c.127-.24.25-.484.37-.722a.0751.0751 0 01.062-.047c.63-.193 1.25-.4 1.85-.61a.0751.0751 0 01.071.013c3.34 1.95 5.76 5.49 5.76 5.49a.07.07 0 00.031.033c2.47 1.13 5.1 1.76 7.47 1.76a.0751.0751 0 00.07-.058c.48-4.59-.44-9.16-3.4-13.63a.07.07 0 00-.03-.027zM8.02 15.3312c-.78 0-1.42-.64-1.42-1.42s.64-1.42 1.42-1.42c.78 0 1.41.64 1.41 1.42s-.63 1.42-1.41 1.42zm7.98 0c-.78 0-1.42-.64-1.42-1.42s.64-1.42 1.42-1.42c.78 0 1.41.64 1.41 1.42s-.63 1.42-1.41 1.42z" />
13+
</svg>
14+
);

0 commit comments

Comments
 (0)