🐛 fix: Update Empty component to support border prop and adjust usage in various pages

This commit is contained in:
web
2025-09-23 05:46:21 -07:00
parent bb0a811432
commit ce9ab89c1c
6 changed files with 26 additions and 22 deletions
+5 -2
View File
@@ -4,7 +4,10 @@ import { default as _Empty } from '@workspace/ui/custom-components/empty';
import { useTranslations } from 'next-intl';
import { useEffect, useState } from 'react';
export function Empty() {
interface EmptyProps {
border?: boolean;
}
export function Empty({ border }: EmptyProps) {
const t = useTranslations('common');
const [description, setDescription] = useState('');
@@ -14,5 +17,5 @@ export function Empty() {
setDescription(t(`empty.${random}`));
}, [t]);
return <_Empty description={description} />;
return <_Empty description={description} border={border} />;
}