mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
Fixed share page. Updated data tables to be responsive.
This commit is contained in:
parent
92d16d8937
commit
c18daf4845
17 changed files with 69 additions and 54 deletions
|
|
@ -6,7 +6,6 @@ import useApi from 'components/hooks/useApi';
|
|||
import DataTable from 'components/common/DataTable';
|
||||
import useFilterQuery from 'components/hooks/useFilterQuery';
|
||||
import useCache from 'store/cache';
|
||||
import { useBreakpoint } from 'react-basics';
|
||||
|
||||
export interface WebsitesDataTableProps {
|
||||
allowEdit?: boolean;
|
||||
|
|
@ -25,7 +24,7 @@ function useWebsites({ includeTeams, onlyTeams }) {
|
|||
|
||||
return useFilterQuery(
|
||||
['websites', { includeTeams, onlyTeams, modified }],
|
||||
params => {
|
||||
(params: any) => {
|
||||
return get(`/users/${user?.id}/websites`, {
|
||||
includeTeams,
|
||||
onlyTeams,
|
||||
|
|
@ -46,7 +45,6 @@ export function WebsitesDataTable({
|
|||
children,
|
||||
}: WebsitesDataTableProps) {
|
||||
const queryResult = useWebsites({ includeTeams, onlyTeams });
|
||||
const breakpoint = useBreakpoint();
|
||||
|
||||
return (
|
||||
<DataTable queryResult={queryResult}>
|
||||
|
|
@ -57,7 +55,6 @@ export function WebsitesDataTable({
|
|||
showActions={showActions}
|
||||
allowEdit={allowEdit}
|
||||
allowView={allowView}
|
||||
cardMode={['xs', 'sm', 'md'].includes(breakpoint)}
|
||||
>
|
||||
{children}
|
||||
</WebsitesTable>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue