Skip to content

Commit

Permalink
(feat) O3-3782: Use styleguide page header component in lab app (#83)
Browse files Browse the repository at this point in the history
* use styleguide pageHeader

* Fixup

* Bump core tooling and framework

---------

Co-authored-by: Dennis Kigen <[email protected]>
  • Loading branch information
Twiineenock and denniskigen authored Aug 13, 2024
1 parent e9a90d0 commit b90646d
Show file tree
Hide file tree
Showing 6 changed files with 1,942 additions and 594 deletions.
34 changes: 0 additions & 34 deletions src/header/laboratory-header.component.tsx

This file was deleted.

71 changes: 0 additions & 71 deletions src/header/laboratory-header.scss

This file was deleted.

13 changes: 0 additions & 13 deletions src/header/laboratory-illustration.component.tsx

This file was deleted.

20 changes: 15 additions & 5 deletions src/laboratory-dashboard.component.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
import React from "react";
import { LaboratoryHeader } from "./header/laboratory-header.component";
import { useTranslation } from "react-i18next";
import { PageHeader, LaboratoryPictogram } from "@openmrs/esm-framework";
import Overlay from "./components/overlay/overlay.component";
import LaboratoryOrdersTabs from "./lab-tabs/laboratory-tabs.component";
import LaboratorySummaryTiles from "./lab-tiles/laboratory-summary-tiles.component";
import styles from "./laboratory-dashboard.scss";

const LaboratoryDashboard: React.FC = () => {
const { t } = useTranslation();

return (
<div className={`omrs-main-content`}>
<LaboratoryHeader />
<LaboratorySummaryTiles />
<LaboratoryOrdersTabs />
<Overlay />
<PageHeader
illustration={<LaboratoryPictogram />}
title={t("laboratory", "Laboratory")}
className={styles.pageHeader}
/>
<div className={styles.container}>
<LaboratorySummaryTiles />
<LaboratoryOrdersTabs />
<Overlay />
</div>
</div>
);
};
Expand Down
10 changes: 10 additions & 0 deletions src/laboratory-dashboard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@use '@carbon/layout';
@use '~@openmrs/esm-styleguide/src/vars' as *;

.pageHeader {
border-bottom: 1px solid $ui-03;
}

.container {
margin-top: layout.$spacing-07;
}
Loading

0 comments on commit b90646d

Please sign in to comment.