mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-03 02:55:29 +08:00
### What problem does this PR solve? Feat: Automatically save agent canvas content Feat: Replace the link of the old version of the agent module #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -6,7 +6,7 @@ import React, { useCallback, useMemo } from 'react';
|
||||
import User from '../user';
|
||||
|
||||
import { useTheme } from '@/components/theme-provider';
|
||||
import { LanguageList, LanguageMap } from '@/constants/common';
|
||||
import { LanguageList, LanguageMap, ThemeEnum } from '@/constants/common';
|
||||
import { useChangeLanguage } from '@/hooks/logic-hooks';
|
||||
import { useFetchUserInfo, useListTenant } from '@/hooks/user-setting-hooks';
|
||||
import { TenantRole } from '@/pages/user-setting/constants';
|
||||
@ -58,10 +58,10 @@ const RightToolBar = () => {
|
||||
}, []);
|
||||
|
||||
const onMoonClick = React.useCallback(() => {
|
||||
setTheme('light');
|
||||
setTheme(ThemeEnum.Light);
|
||||
}, [setTheme]);
|
||||
const onSunClick = React.useCallback(() => {
|
||||
setTheme('dark');
|
||||
setTheme(ThemeEnum.Dark);
|
||||
}, [setTheme]);
|
||||
|
||||
const handleBellClick = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user