Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

feat(#3748): restore favicon icons in websites list

Prince EKPINSE046cb6ef62a8
diff --git a/src/app/(main)/websites/WebsitesDataTable.tsx b/src/app/(main)/websites/WebsitesDataTable.tsx
index 93b1a7c79..c39420f09 100644
--- a/src/app/(main)/websites/WebsitesDataTable.tsx
+++ b/src/app/(main)/websites/WebsitesDataTable.tsx
@@ -2,6 +2,8 @@ import Link from 'next/link';
import { WebsitesTable } from './WebsitesTable';
import { DataGrid } from '@/components/common/DataGrid';
import { useLoginQuery, useNavigation, useUserWebsitesQuery } from '@/components/hooks';
+import { Favicon } from '@/index';
+import { Icon, Row } from '@umami/react-zen';
export function WebsitesDataTable({
userId,
@@ -21,7 +23,12 @@ export function WebsitesDataTable({
const { renderUrl } = useNavigation();
const renderLink = (row: any) => (
- <Link href={renderUrl(`/websites/${row.id}`, false)}>{row.name}</Link>
+ <Row alignItems="center" gap="3">
+ <Icon size="md" color="muted">
+ <Favicon domain={row.domain} />
+ </Icon>
+ <Link href={renderUrl(`/websites/${row.id}`, false)}>{row.name}</Link>
+ </Row>
);
return (
diff --git a/src/app/login/LoginForm.tsx b/src/app/login/LoginForm.tsx
index b151b94ea..021389852 100644
--- a/src/app/login/LoginForm.tsx
+++ b/src/app/login/LoginForm.tsx
@@ -26,7 +26,7 @@ export function LoginForm() {
setClientAuthToken(token);
setUser(user);
- router.push('/websites');
+ router.push('/');
},
});
};