Skip to content

Commit

Permalink
feat: Use old search in mobile
Browse files Browse the repository at this point in the history
In flagship app, it is not possible to use the new search with the
dataproxy. To simplify, let's use old search on mobile.
  • Loading branch information
zatteo authored and paultranvan committed Dec 19, 2024
1 parent cf7b66c commit a348dc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/navigation/AppRoute.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Route, useParams, Navigate } from 'react-router-dom'

import { RealTimeQueries } from 'cozy-client'
import { SearchDialog, AssistantDialog } from 'cozy-dataproxy-lib'
import { AssistantDialog } from 'cozy-dataproxy-lib'
import flag from 'cozy-flags'

import ExternalRedirect from './ExternalRedirect'
Expand Down Expand Up @@ -41,6 +41,7 @@ import { NextcloudFolderView } from 'modules/views/Nextcloud/NextcloudFolderView
import { NextcloudMoveView } from 'modules/views/Nextcloud/NextcloudMoveView'
import { NextcloudTrashEmptyView } from 'modules/views/Nextcloud/NextcloudTrashEmptyView'
import { NextcloudTrashView } from 'modules/views/Nextcloud/NextcloudTrashView'
import SearchView from 'modules/views/Search/SearchView'
import { TrashDestroyView } from 'modules/views/Trash/TrashDestroyView'
import { TrashEmptyView } from 'modules/views/Trash/TrashEmptyView'

Expand Down Expand Up @@ -153,7 +154,7 @@ const AppRoute = () => (
/>

<Route path="file/:fileId" element={<FileOpenerExternal />} />
<Route path="search" element={<SearchDialog />} />
<Route path="search" element={<SearchView />} />
<Route
path="assistant/:conversationId"
element={
Expand Down

0 comments on commit a348dc1

Please sign in to comment.