mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 14:01:40 +00:00
refactor: remove file route
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import { joinPath, PATH_SEPARATOR } from "@fileone/path"
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import { FilesPage } from "@/files/files-page"
|
||||
|
||||
export const Route = createFileRoute("/_authenticated/_sidebar-layout/files/$")(
|
||||
{
|
||||
component: RouteComponent,
|
||||
},
|
||||
)
|
||||
|
||||
function RouteComponent() {
|
||||
const { _splat } = Route.useParams()
|
||||
const path = _splat ? joinPath("", _splat) : PATH_SEPARATOR
|
||||
return <FilesPage path={path} />
|
||||
}
|
||||
Reference in New Issue
Block a user