Client:Routes: Added public route media viewer

This commit is contained in:
Akmal Isomadinov 2024-03-03 18:08:20 +05:00
parent 794dde73ec
commit b342219053
2 changed files with 12 additions and 1 deletions

View File

@ -362,6 +362,14 @@ const ClientRoutes = [
</PublicRoute>
),
},
{
path: "media/view/:id",
element: (
<PublicRoute>
<FilesView />
</PublicRoute>
),
},
],
},
{

View File

@ -32,7 +32,10 @@ export const PublicRoute = (props: PublicRouteProps) => {
return children;
}
if (location.pathname === "/rooms/share") {
if (
location.pathname === "/rooms/share" ||
location.pathname.includes("/rooms/share/media/view/")
) {
return children;
}