fix: store blacklist

This commit is contained in:
kangfenmao 2024-07-05 17:00:57 +08:00
parent 5b1eb63066
commit 2475bb4eac
3 changed files with 5 additions and 6 deletions

View File

@ -12,9 +12,9 @@ const Sidebar: FC = () => {
return (
<Container>
<Avatar>
<StyledLink to="/settings/general">
<AvatarImg src={avatar || Logo} />
</Avatar>
</StyledLink>
<MainMenus>
<Menus>
<StyledLink to="/">
@ -54,8 +54,6 @@ const Container = styled.div`
border-right: 0.5px solid var(--color-border);
`
const Avatar = styled.div``
const AvatarImg = styled.img`
border-radius: 50%;
width: 32px;
@ -107,6 +105,7 @@ const Icon = styled.div`
const StyledLink = styled(Link)`
text-decoration: none;
-webkit-app-region: none;
`
export default Sidebar

View File

@ -19,7 +19,7 @@ const persistedReducer = persistReducer(
key: 'cherry-ai',
storage,
version: 1,
whitelist: ['runtime']
blacklist: ['runtime']
},
rootReducer
)

View File

@ -5,7 +5,7 @@ export interface SettingsState {
}
const initialState: SettingsState = {
showRightSidebar: false
showRightSidebar: true
}
const settingsSlice = createSlice({