mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-29 12:09:31 +08:00
refactor(ui): unify top level pages structure, use standard language codes and time zones (#13573)
### What problem does this PR solve? - Unify top level pages structure - Standardize locale language codes (BCP 47) and time zones (IANA tz) > **Note:** > Newly created user info brings non-standard default values `timezone: "UTC+8\tAsia/Shanghai"` and `language: "English"`. ### Type of change - [x] Refactoring
This commit is contained in:
@@ -83,8 +83,10 @@ export const EmptyAppCard = (props: {
|
||||
size?: 'small' | 'large';
|
||||
children?: React.ReactNode;
|
||||
testId?: string;
|
||||
tabIndex?: number;
|
||||
}) => {
|
||||
const { type, showIcon, className, isSearch, children, testId } = props;
|
||||
const { type, showIcon, className, isSearch, children, testId, tabIndex } =
|
||||
props;
|
||||
const { t } = useTranslation();
|
||||
let defaultClass = '';
|
||||
let style = {};
|
||||
@@ -110,10 +112,10 @@ export const EmptyAppCard = (props: {
|
||||
<EmptyCard
|
||||
onClick={isSearch ? undefined : props.onClick}
|
||||
data-testid={testId}
|
||||
tabIndex={isSearch ? undefined : 0}
|
||||
tabIndex={tabIndex ?? (isSearch ? undefined : 0)}
|
||||
icon={showIcon ? cardData.icon : undefined}
|
||||
title={isSearch ? notFound : title}
|
||||
className={cn('cursor-pointer', className)}
|
||||
className={cn(!isSearch && 'cursor-pointer', className)}
|
||||
style={style}
|
||||
// description={EmptyCardData[type].description}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user