diff --git a/apps/remix/app/routes/_authenticated+/admin+/organisation-insights.$id.tsx b/apps/remix/app/routes/_authenticated+/admin+/organisation-insights.$id.tsx index 560c25c3b..e53cc04ff 100644 --- a/apps/remix/app/routes/_authenticated+/admin+/organisation-insights.$id.tsx +++ b/apps/remix/app/routes/_authenticated+/admin+/organisation-insights.$id.tsx @@ -1,6 +1,10 @@ +import { Trans } from '@lingui/react/macro'; +import { Link } from 'react-router'; + import { getOrganisationDetailedInsights } from '@documenso/lib/server-only/admin/get-organisation-detailed-insights'; import type { DateRange } from '@documenso/lib/types/search-params'; import { getAdminOrganisation } from '@documenso/trpc/server/admin-router/get-admin-organisation'; +import { Button } from '@documenso/ui/primitives/button'; import { OrganisationInsightsTable } from '~/components/tables/organisation-insights-table'; @@ -38,12 +42,17 @@ export async function loader({ params, request }: Route.LoaderArgs) { } export default function OrganisationInsights({ loaderData }: Route.ComponentProps) { - const { insights, page, perPage, dateRange, view, organisationName } = loaderData; + const { insights, page, perPage, dateRange, view, organisationName, organisationId } = loaderData; return (