fix doctor detail view

This commit is contained in:
Danel Kungla
2025-10-06 19:44:09 +03:00
parent 3f08fbc543
commit d2494f3456
16 changed files with 126 additions and 94 deletions

View File

@@ -9,7 +9,7 @@ import {
import ResultsTableWrapper from './results-table-wrapper';
export default function Dashboard() {
export default function DoctorDashboard() {
return (
<>
<ResultsTableWrapper

View File

@@ -34,7 +34,7 @@ export function DoctorSidebar({
<Sidebar collapsible="icon">
<SidebarHeader className={'m-2'}>
<AppLogo
href={pathsConfig.app.doctor}
href={pathsConfig.app.home}
className="max-w-full"
compact={!open}
/>

View File

@@ -36,7 +36,7 @@ async function AnalysisPage({
return (
<>
<PageHeader />
<PageBody>
<PageBody className="px-12">
<AnalysisView
patient={analysisResultDetails.patient}
order={analysisResultDetails.order}

View File

@@ -17,7 +17,7 @@ async function CompletedJobsPage() {
return (
<>
<PageHeader />
<PageBody>
<PageBody className="px-12">
<ResultsTableWrapper
titleKey="doctor:completedReviews"
action={getUserDoneResponsesAction}

View File

@@ -17,7 +17,7 @@ async function MyReviewsPage() {
return (
<>
<PageHeader />
<PageBody>
<PageBody className="px-12">
<ResultsTableWrapper
titleKey="doctor:myReviews"
action={getUserInProgressResponsesAction}

View File

@@ -17,7 +17,7 @@ async function OpenJobsPage() {
return (
<>
<PageHeader />
<PageBody>
<PageBody className="px-12">
<ResultsTableWrapper
titleKey="doctor:openReviews"
action={getOpenResponsesAction}

View File

@@ -5,7 +5,7 @@ import {
createDoctorPageViewLog,
} from '~/lib/services/audit/doctorPageView.service';
import Dashboard from './_components/doctor-dashboard';
import DoctorDashboard from './_components/doctor-dashboard';
import { DoctorGuard } from './_components/doctor-guard';
async function DoctorPage() {
@@ -16,8 +16,8 @@ async function DoctorPage() {
return (
<>
<PageHeader />
<PageBody>
<Dashboard />
<PageBody className="px-12">
<DoctorDashboard />
</PageBody>
</>
);

View File

@@ -13,7 +13,7 @@ import { GlobalLoader } from '@kit/ui/makerkit/global-loader';
import { PageBody, PageHeader } from '@kit/ui/page';
import { Trans } from '@kit/ui/trans';
import { AnalysisOrder } from '~/lib/types/analysis-order';
import { AnalysisOrder } from '~/lib/types/order';
function OrderConfirmedLoadingWrapper({
medusaOrder: initialMedusaOrder,