forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor: refactor settings page entry
- Loading branch information
Showing
6 changed files
with
55 additions
and
76 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
import Page from './index'; | ||
'use client'; | ||
|
||
const Index = () => { | ||
return <Page />; | ||
}; | ||
import { memo } from 'react'; | ||
|
||
export default Index; | ||
import { useSwitchSideBarOnInit } from '@/store/global/hooks/useSwitchSettingsOnInit'; | ||
import { SettingsTabs } from '@/store/global/initialState'; | ||
|
||
import Layout from '../index'; | ||
import Agent from './Agent'; | ||
|
||
const AgentSetting = memo(() => { | ||
useSwitchSideBarOnInit(SettingsTabs.Agent); | ||
|
||
return ( | ||
<Layout> | ||
<Agent /> | ||
</Layout> | ||
); | ||
}); | ||
|
||
export default AgentSetting; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
import Page from './index'; | ||
'use client'; | ||
|
||
const Index = () => { | ||
return <Page />; | ||
}; | ||
import { memo } from 'react'; | ||
|
||
export default Index; | ||
import { useSwitchSideBarOnInit } from '@/store/global/hooks/useSwitchSettingsOnInit'; | ||
import { SettingsTabs } from '@/store/global/initialState'; | ||
|
||
import Layout from '../index'; | ||
import Common from './Common'; | ||
|
||
const CommonSetting = memo(() => { | ||
useSwitchSideBarOnInit(SettingsTabs.Common); | ||
return ( | ||
<Layout> | ||
<Common /> | ||
</Layout> | ||
); | ||
}); | ||
|
||
export default CommonSetting; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
import Page from './index'; | ||
'use client'; | ||
|
||
const Index = () => { | ||
return <Page />; | ||
}; | ||
import { memo } from 'react'; | ||
|
||
export default Index; | ||
import { useSwitchSideBarOnInit } from '@/store/global/hooks/useSwitchSettingsOnInit'; | ||
import { SettingsTabs } from '@/store/global/initialState'; | ||
|
||
import Layout from '../index'; | ||
import LLM from './LLM'; | ||
|
||
const LLMSetting = memo(() => { | ||
useSwitchSideBarOnInit(SettingsTabs.LLM); | ||
return ( | ||
<Layout> | ||
<LLM /> | ||
</Layout> | ||
); | ||
}); | ||
|
||
export default LLMSetting; |