mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Code cleanup.
This commit is contained in:
parent
21cdb06571
commit
7d5a24044a
10 changed files with 34 additions and 43 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import EmptyPlaceholder from 'components/common/EmptyPlaceholder';
|
||||
import Empty from 'components/common/Empty';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
import { useState } from 'react';
|
||||
import {
|
||||
|
|
@ -36,7 +36,7 @@ export function SettingsTable({
|
|||
|
||||
return (
|
||||
<>
|
||||
{showSearch && (
|
||||
{showSearch && !!value.length && (
|
||||
<SearchField
|
||||
onChange={handleFilterChange}
|
||||
delay={1000}
|
||||
|
|
@ -47,7 +47,7 @@ export function SettingsTable({
|
|||
/>
|
||||
)}
|
||||
{value.length === 0 && filterValue && (
|
||||
<EmptyPlaceholder message={formatMessage(messages.noResultsFound)}></EmptyPlaceholder>
|
||||
<Empty message={formatMessage(messages.noResultsFound)} />
|
||||
)}
|
||||
{value.length > 0 && (
|
||||
<Table columns={columns} rows={value}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue