diff --git a/app/components/Code/DirectoryListing.vue b/app/components/Code/DirectoryListing.vue index 5522badfa..b1d93223c 100644 --- a/app/components/Code/DirectoryListing.vue +++ b/app/components/Code/DirectoryListing.vue @@ -2,7 +2,6 @@ import type { PackageFileTree } from '#shared/types' import type { RouteLocationRaw } from 'vue-router' import { getFileIcon } from '~/utils/file-icons' -import { formatBytes } from '~/utils/formatters' const props = defineProps<{ tree: PackageFileTree[] @@ -51,6 +50,8 @@ function getCodeRoute(nodePath?: string): RouteLocationRaw { params: { path: pathSegments as [string, ...string[]] }, } } + +const bytesFormatter = useBytesFormatter()