Skip to content

Commit

Permalink
feat: Add View for mobile search and assistant
Browse files Browse the repository at this point in the history
We can just replace the previous search view by the new one easily
because both are full page modal.
  • Loading branch information
zatteo committed Dec 13, 2024
1 parent f03a55a commit 521ab7f
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
@@ -1,6 +1,7 @@
import React from 'react'
import { Route, useParams, Navigate } from 'react-router-dom'

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

import ExternalRedirect from './ExternalRedirect'
Expand All @@ -12,7 +13,6 @@ import OnlyOfficeCreateView from '../views/OnlyOffice/Create'
import OnlyOfficePaywallView from '../views/OnlyOffice/OnlyOfficePaywallView'
import RecentView from '../views/Recent'
import FilesViewerRecent from '../views/Recent/FilesViewerRecent'
import SearchView from '../views/Search/SearchView'
import SharingsView from '../views/Sharings'
import SharingsFilesViewer from '../views/Sharings/FilesViewerSharings'
import SharingsFolderView from '../views/Sharings/SharingsFolderView'
Expand Down Expand Up @@ -152,7 +152,8 @@ const AppRoute = () => (
/>

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

<Route path="favorites" element={<FavoritesView />}>
<Route path="file/:fileId/revision" element={<FileHistory />} />
Expand Down

0 comments on commit 521ab7f

Please sign in to comment.