Skip to content

Commit 9446d14

Browse files
committed
add leave server icon
1 parent 4da61cc commit 9446d14

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

components/home/Server.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import PlusIcon from '@/components/icons/PlusIcon';
2626
import GearIcon from '@/components/icons/GearIcon';
2727
import { deleteServer, leaveServer } from '@/services/server.service';
2828
import TrashIcon from '@/components/icons/TrashIcon';
29+
import { LeaveIcon } from '@/components/icons/LeaveIcon';
2930

3031
export default function Server({
3132
server,
@@ -141,7 +142,7 @@ export default function Server({
141142
hidden={(serverPermissions & 1) === 1}
142143
>
143144
<div className="flex flex-row w-full">
144-
<GearIcon width={5} height={5} />
145+
<LeaveIcon className='!w-5 !h-5' />
145146
<span className="ml-2 w-full">Leave Server</span>
146147
</div>
147148
</DropdownMenu.Item>

components/icons/LeaveIcon.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export function LeaveIcon({ className }: { className?: string }) {
2+
return (
3+
<svg
4+
xmlns="http://www.w3.org/2000/svg"
5+
fill="none"
6+
viewBox="0 0 24 24"
7+
stroke-width="1.5"
8+
stroke="currentColor"
9+
className={`w-6 h-6 ${className}`}
10+
>
11+
<path
12+
stroke-linecap="round"
13+
stroke-linejoin="round"
14+
d="M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3"
15+
/>
16+
</svg>
17+
);
18+
}

0 commit comments

Comments
 (0)