diff --git a/src/app/(main)/settings/layout.module.css b/src/app/(main)/settings/layout.module.css index b87f75d0..c56ec8bb 100644 --- a/src/app/(main)/settings/layout.module.css +++ b/src/app/(main)/settings/layout.module.css @@ -6,7 +6,7 @@ .menu { width: 240px; - padding-top: 40px; + padding-top: 34px; padding-right: 20px; } diff --git a/src/components/common/DataTable.tsx b/src/components/common/DataTable.tsx index 3efee024..ad76f18b 100644 --- a/src/components/common/DataTable.tsx +++ b/src/components/common/DataTable.tsx @@ -25,16 +25,16 @@ export interface DataTableProps { error: unknown; }; searchDelay?: number; - showSearch?: boolean; - showPaging?: boolean; + allowSearch?: boolean; + allowPaging?: boolean; children: ReactNode | ((data: any) => ReactNode); } export function DataTable({ queryResult, searchDelay = 600, - showSearch = true, - showPaging = true, + allowSearch = true, + allowPaging = true, children, }: DataTableProps) { const { formatMessage, labels, messages } = useMessages(); @@ -58,7 +58,7 @@ export function DataTable({ return ( <> - {(hasData || query || isLoading) && showSearch && ( + {allowSearch && (hasData || query) && ( {hasData ? (typeof children === 'function' ? children(result) : children) : null} {isLoading && } - {!isLoading && !hasData && !query && ( - - )} + {!isLoading && !hasData && !query && } {noResults && } - {showPaging && ( + {allowPaging && hasData && (