mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
feat(#3748): restore favicon icons in websites list
This commit is contained in:
parent
a19b92a5cb
commit
046cb6ef62
2 changed files with 9 additions and 2 deletions
|
|
@ -2,6 +2,8 @@ import Link from 'next/link';
|
||||||
import { WebsitesTable } from './WebsitesTable';
|
import { WebsitesTable } from './WebsitesTable';
|
||||||
import { DataGrid } from '@/components/common/DataGrid';
|
import { DataGrid } from '@/components/common/DataGrid';
|
||||||
import { useLoginQuery, useNavigation, useUserWebsitesQuery } from '@/components/hooks';
|
import { useLoginQuery, useNavigation, useUserWebsitesQuery } from '@/components/hooks';
|
||||||
|
import { Favicon } from '@/index';
|
||||||
|
import { Icon, Row } from '@umami/react-zen';
|
||||||
|
|
||||||
export function WebsitesDataTable({
|
export function WebsitesDataTable({
|
||||||
userId,
|
userId,
|
||||||
|
|
@ -21,7 +23,12 @@ export function WebsitesDataTable({
|
||||||
const { renderUrl } = useNavigation();
|
const { renderUrl } = useNavigation();
|
||||||
|
|
||||||
const renderLink = (row: any) => (
|
const renderLink = (row: any) => (
|
||||||
|
<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>
|
<Link href={renderUrl(`/websites/${row.id}`, false)}>{row.name}</Link>
|
||||||
|
</Row>
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export function LoginForm() {
|
||||||
setClientAuthToken(token);
|
setClientAuthToken(token);
|
||||||
setUser(user);
|
setUser(user);
|
||||||
|
|
||||||
router.push('/websites');
|
router.push('/');
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue