MED-137: add doctor other jobs view (#55)
* add doctor jobs view * change translation * another translation change * clean up * add analaysis detail view to paths config * translation * merge fix * fix path * move components to shared * refactor * imports * clean up
This commit is contained in:
36
app/doctor/_components/doctor-dashboard.tsx
Normal file
36
app/doctor/_components/doctor-dashboard.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
'use client';
|
||||
|
||||
import {
|
||||
getOpenResponsesAction,
|
||||
getOtherResponsesAction,
|
||||
getUserDoneResponsesAction,
|
||||
getUserInProgressResponsesAction,
|
||||
} from '@kit/doctor/actions/table-data-fetching-actions';
|
||||
import ResultsTableWrapper from './results-table-wrapper';
|
||||
|
||||
export default function Dashboard() {
|
||||
return (
|
||||
<>
|
||||
<ResultsTableWrapper
|
||||
titleKey="doctor:openReviews"
|
||||
action={getOpenResponsesAction}
|
||||
queryKey="doctor-open-jobs"
|
||||
/>
|
||||
<ResultsTableWrapper
|
||||
titleKey="doctor:myReviews"
|
||||
action={getUserInProgressResponsesAction}
|
||||
queryKey="doctor-in-progress-jobs"
|
||||
/>
|
||||
<ResultsTableWrapper
|
||||
titleKey="doctor:completedReviews"
|
||||
action={getUserDoneResponsesAction}
|
||||
queryKey="doctor-done-jobs"
|
||||
/>
|
||||
<ResultsTableWrapper
|
||||
titleKey="doctor:otherReviews"
|
||||
action={getOtherResponsesAction}
|
||||
queryKey="doctor-other-jobs"
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user