generated from EyeSeeTea/dhis2-app-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove examples and add a TODO for adding sections
- Loading branch information
Showing
7 changed files
with
11 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,10 @@ | ||
import React from "react"; | ||
import { IconEdit24 } from "@dhis2/ui"; | ||
|
||
import i18n from "../../../utils/i18n"; | ||
import { Layout } from "../../components/layout/Layout"; | ||
import { Section } from "../../components/section/Section"; | ||
import { Button } from "../../components/button/Button"; | ||
import { RiskAssessmentSection } from "./RiskAssessmentSection"; | ||
|
||
// TODO: Add every section here | ||
|
||
export const EventTrackerPage: React.FC = React.memo(() => { | ||
return ( | ||
<Layout title={i18n.t("Event Tracker")}> | ||
<Section | ||
title={"Event details, event date"} | ||
titleVariant="secondary" | ||
headerButtom={ | ||
<Button | ||
onClick={function (): void { | ||
throw new Error("Function not implemented."); | ||
}} | ||
variant="outlined" | ||
color="secondary" | ||
startIcon={<IconEdit24 />} | ||
> | ||
{i18n.t("Edit Details")} | ||
</Button> | ||
} | ||
hasSeparator | ||
> | ||
Event details | ||
</Section> | ||
<Section title={i18n.t("Districts affected")} hasSeparator> | ||
Districts affected content | ||
</Section> | ||
<RiskAssessmentSection /> | ||
<Section title={i18n.t("Overview")} lastUpdated="last updated date" hasSeparator> | ||
Overview content | ||
</Section> | ||
<Section hasSeparator>Cases content</Section> | ||
<Section title={i18n.t("7-1-7 performance")} hasSeparator> | ||
7-1-7 performance content | ||
</Section> | ||
</Layout> | ||
); | ||
return <Layout title={i18n.t("Event Tracker")}></Layout>; | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
import React from "react"; | ||
|
||
import { Layout } from "../../components/layout/Layout"; | ||
import { FormLayout } from "../../components/form/FormLayout"; | ||
|
||
export const FormPage: React.FC = React.memo(() => { | ||
return ( | ||
<Layout title="Form Title" subtitle="Form Subtitle" hideSideBarOptions> | ||
<FormLayout title="title" subtitle="subtitle" onSave={() => {}}> | ||
<div>FormPage</div> | ||
</FormLayout> | ||
</Layout> | ||
); | ||
return <Layout title="Form Title" subtitle="Form Subtitle" hideSideBarOptions></Layout>; | ||
}); |
60 changes: 3 additions & 57 deletions
60
src/webapp/pages/incident-action-plan/IncidentActionPlanPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,15 @@ | ||
import React from "react"; | ||
import { IconEdit24 } from "@dhis2/ui"; | ||
|
||
import i18n from "../../../utils/i18n"; | ||
import { Layout } from "../../components/layout/Layout"; | ||
import { Section } from "../../components/section/Section"; | ||
import { Button } from "../../components/button/Button"; | ||
|
||
// TODO: Add every section here, first it's just an example | ||
|
||
export const IncidentActionPlanPage: React.FC = React.memo(() => { | ||
return ( | ||
<Layout | ||
title={i18n.t("Incident Action Plan")} | ||
subtitle={i18n.t("Cholera in NW Province, June 2023")} | ||
> | ||
<Section>IAP details</Section> | ||
<Section | ||
title={i18n.t("Response actions")} | ||
headerButtom={ | ||
<Button | ||
onClick={function (): void { | ||
throw new Error("Function not implemented."); | ||
}} | ||
variant="outlined" | ||
color="secondary" | ||
startIcon={<IconEdit24 />} | ||
> | ||
{i18n.t("Edit Response Actions")} | ||
</Button> | ||
} | ||
> | ||
Response actions content | ||
</Section> | ||
<Section | ||
title={i18n.t("Action plan")} | ||
headerButtom={ | ||
<Button | ||
onClick={function (): void { | ||
throw new Error("Function not implemented."); | ||
}} | ||
variant="outlined" | ||
color="secondary" | ||
startIcon={<IconEdit24 />} | ||
> | ||
{i18n.t("Edit Action Plan")} | ||
</Button> | ||
} | ||
> | ||
Action plan content | ||
</Section> | ||
<Section | ||
title={i18n.t("Team")} | ||
headerButtom={ | ||
<Button | ||
onClick={function (): void { | ||
throw new Error("Function not implemented."); | ||
}} | ||
variant="outlined" | ||
color="secondary" | ||
startIcon={<IconEdit24 />} | ||
> | ||
{i18n.t("Edit Team")} | ||
</Button> | ||
} | ||
> | ||
Team content | ||
</Section> | ||
</Layout> | ||
></Layout> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters