Skip to content

Commit

Permalink
feat: Handle custom store with cozy-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Mar 6, 2024
1 parent 26118b4 commit 7d5bf7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/layout/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Layout = () => {

return (
<LayoutUI>
<BarComponent />
<BarComponent disableInternalStore />
<FlagSwitcher />
<Sidebar className="u-flex-justify-between">
<Nav />
Expand Down
2 changes: 1 addition & 1 deletion src/modules/public/PublicLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const PublicLayout = () => {

return (
<Layout>
<BarComponent replaceTitleOnMobile isPublic />
<BarComponent replaceTitleOnMobile isPublic disableInternalStore />
<FlagSwitcher />
<Alerter t={t} />
<UploadQueue />
Expand Down
3 changes: 3 additions & 0 deletions src/store/rootReducer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { default as ui } from 'react-cozy-helpers'
import { combineReducers } from 'redux'

import { barReducers } from 'cozy-bar'

import { default as rename } from 'modules/drive/rename'
import { default as filelist } from 'modules/filelist/duck'
import { default as view } from 'modules/navigation/duck'
Expand All @@ -19,6 +21,7 @@ const createRootReducer = client => {

const reducers = {
...baseReducers,
...barReducers,
cozy: client.reducer()
}

Expand Down

0 comments on commit 7d5bf7f

Please sign in to comment.