Web:Client:Files: change redirect from personal to shared room

This commit is contained in:
TimofeyBoyko 2022-09-16 15:28:15 +03:00
parent 0d4d80c59d
commit 8fd5287765

View File

@ -73,7 +73,7 @@ const FilesArticle = React.memo(({ history }) => {
); );
}); });
const FilesSection = React.memo(({ withAccounts }) => { const FilesSection = React.memo(({}) => {
return ( return (
<Switch> <Switch>
{/*<PrivateRoute exact path={HISTORY_URL} component={VersionHistory} />*/} {/*<PrivateRoute exact path={HISTORY_URL} component={VersionHistory} />*/}
@ -86,22 +86,29 @@ const FilesSection = React.memo(({ withAccounts }) => {
<PrivateRoute <PrivateRoute
exact exact
path={["/", "/rooms"]} path={["/", "/rooms"]}
component={() => <Redirect to="/rooms/personal" />} component={() => <Redirect to="/rooms/shared" />}
/> />
<PrivateRoute <PrivateRoute
restricted
withManager
path={[ path={[
"/rooms/personal", "/rooms/personal",
"/rooms/personal/filter", "/rooms/personal/filter",
"/rooms/shared",
"/rooms/shared/filter",
"/rooms/shared/:room",
"/rooms/shared/:room/filter",
"/rooms/archived", "/rooms/archived",
"/rooms/archived/filter", "/rooms/archived/filter",
"/rooms/archived/:room", "/rooms/archived/:room",
"/rooms/archived/:room/filter", "/rooms/archived/:room/filter",
]}
component={Home}
/>
<PrivateRoute
path={[
"/rooms/shared",
"/rooms/shared/filter",
"/rooms/shared/:room",
"/rooms/shared/:room/filter",
"/files/favorite", "/files/favorite",
"/files/favorite/filter", "/files/favorite/filter",