mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Styling for all forms.
This commit is contained in:
parent
c98f324c22
commit
3650204519
28 changed files with 36 additions and 33 deletions
|
|
@ -25,9 +25,7 @@ export function ConfirmationForm({
|
|||
|
||||
return (
|
||||
<Form onSubmit={onConfirm} error={error}>
|
||||
<Row marginY="4" gap="2">
|
||||
{message}
|
||||
</Row>
|
||||
<Row marginY="4">{message}</Row>
|
||||
<FormButtons>
|
||||
<Button onPress={onClose}>{formatMessage(labels.cancel)}</Button>
|
||||
<FormSubmitButton
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { useMessages, useNavigation } from '@/components/hooks';
|
|||
import { Pager } from '@/components/common/Pager';
|
||||
import { LoadingPanel } from '@/components/common/LoadingPanel';
|
||||
import { PageResult } from '@/lib/types';
|
||||
import { Empty } from '@/components/common/Empty';
|
||||
|
||||
const DEFAULT_SEARCH_DELAY = 600;
|
||||
|
||||
|
|
@ -46,6 +47,10 @@ export function DataGrid({
|
|||
[search],
|
||||
);
|
||||
|
||||
if (data?.data?.length === 0) {
|
||||
return <Empty />;
|
||||
}
|
||||
|
||||
return (
|
||||
<Column gap="4" minHeight="300px">
|
||||
{allowSearch && (data || search) && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue