Styling for all forms.

This commit is contained in:
Mike Cao 2025-07-12 13:20:32 -07:00
parent c98f324c22
commit 3650204519
28 changed files with 36 additions and 33 deletions

View file

@ -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

View file

@ -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) && (