diff --git a/app/dashboard/applications/Applications.tsx b/app/dashboard/applications/Applications.tsx index ba6922d..0ac2871 100644 --- a/app/dashboard/applications/Applications.tsx +++ b/app/dashboard/applications/Applications.tsx @@ -24,6 +24,7 @@ import { LayoutGrid, List, Pencil, + Zap, } from "lucide-react"; import { Card, @@ -241,6 +242,13 @@ export default function Dashboard() { return () => clearTimeout(delayDebounce); }, [searchTerm]); + const generateIconURL = async () => { + setIcon("https://cdn.jsdelivr.net/gh/selfhst/icons/png/" + name.toLowerCase() + ".png") + } + + const generateEditIconURL = async () => { + setEditIcon("https://cdn.jsdelivr.net/gh/selfhst/icons/png/" + editName.toLowerCase() + ".png") + } return ( @@ -344,10 +352,16 @@ export default function Dashboard() { Icon URL{" "} (optional) - setIcon(e.target.value)} - /> +
+ setIcon(e.target.value)} + /> + +
@@ -560,13 +574,18 @@ export default function Dashboard() { (optional) - - setEditIcon(e.target.value) - } - /> +
+ + setEditIcon(e.target.value) + } + /> + +