Skip to content

Commit

Permalink
Tried reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
RyRy79261 committed Jun 22, 2021
1 parent e8a2b1a commit 90586f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/files-ui/src/Components/FilesRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,27 @@ const FilesRoutes = () => {
return (
<Switch>
<ConditionalRoute
exact
path={ROUTE_LINKS.ShareExplorer("/:bucket-id", "/")}
isAuthorized={isAuthorized}
component={ShareFilesPage}
redirectPath={ROUTE_LINKS.Landing}
/>
<ConditionalRoute
path={ROUTE_LINKS.Drive("/")}
path={ROUTE_LINKS.SharedFolders}
isAuthorized={isAuthorized}
component={DrivePage}
component={SharedFoldersOverview}
redirectPath={ROUTE_LINKS.Landing}
/>
<ConditionalRoute
path={ROUTE_LINKS.Bin("/")}
path={ROUTE_LINKS.Drive("/")}
isAuthorized={isAuthorized}
component={BinPage}
component={DrivePage}
redirectPath={ROUTE_LINKS.Landing}
/>
<ConditionalRoute
path={ROUTE_LINKS.SharedFolders}
path={ROUTE_LINKS.Bin("/")}
isAuthorized={isAuthorized}
component={SharedFoldersOverview}
component={BinPage}
redirectPath={ROUTE_LINKS.Landing}
/>
<ConditionalRoute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const SharedFolderOverview = () => {
}

const openShare = useCallback((bucketId: string) => {
console.log(ROUTE_LINKS.ShareExplorer(bucketId, "/"))
redirect(ROUTE_LINKS.ShareExplorer(bucketId, "/"))
}, [redirect])

Expand Down

0 comments on commit 90586f1

Please sign in to comment.