Adjust styles to match the design system (#11118)

### What problem does this PR solve?

- Modify and adjust styles (CSS vars, components) to match the design
system
- Adjust file and directory structure of admin UI

### Type of change

- [x] Refactoring
This commit is contained in:
Jimmy Ben Klieve
2025-11-10 10:05:19 +08:00
committed by GitHub
parent 660386d3b5
commit 1cd54832b5
42 changed files with 685 additions and 539 deletions

View File

@@ -2,6 +2,9 @@ import { cn } from '@/lib/utils';
import { t } from 'i18next';
import { useIsDarkTheme } from '../theme-provider';
import noDataIcon from './no data bri.svg';
import noDataIconDark from './no data.svg';
type EmptyProps = {
className?: string;
children?: React.ReactNode;
@@ -10,6 +13,14 @@ type EmptyProps = {
const EmptyIcon = () => {
const isDarkTheme = useIsDarkTheme();
return (
<img
className="h-20"
src={isDarkTheme ? noDataIconDark : noDataIcon}
alt={t('common.noData')}
/>
);
return (
<svg
width="184"
@@ -67,13 +78,14 @@ const Empty = (props: EmptyProps) => {
return (
<div
className={cn(
'flex flex-col justify-center items-center text-center gap-3',
'flex flex-col justify-center items-center text-center gap-2',
className,
)}
>
<EmptyIcon />
{!children && (
<div className="empty-text mt-4 text-text-secondary">
<div className="empty-text text-text-secondary">
{t('common.noData')}
</div>
)}