Skip to content

Commit

Permalink
Clean create event component sections that were an example
Browse files Browse the repository at this point in the history
  • Loading branch information
anagperal committed Jun 27, 2024
1 parent 8fe5ab0 commit 2338b34
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/webapp/pages/create-event/CreateEventPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,7 @@ import React from "react";

import { Layout } from "../../components/layout/Layout";
import i18n from "../../../utils/i18n";
import { FormPage } from "../../components/form-page/FormPage";
import { FormSection } from "../../components/form-section/FormSection";
import { useHistory } from "react-router-dom";

export const CreateEventPage: React.FC = React.memo(() => {
const history = useHistory();

const goBack = () => {
history.goBack();
};

return (
<Layout title={i18n.t("Create Event")} hideSideBarOptions>
<FormPage onCancel={goBack} onSave={() => {}}>
<FormSection title={i18n.t("Event Name")} hasSeparator>
<div>test</div>
</FormSection>
<FormSection title={i18n.t("Hazard Type")} hasSeparator>
<div>test</div>
</FormSection>
</FormPage>
</Layout>
);
return <Layout title={i18n.t("Create Event")} hideSideBarOptions></Layout>;
});

0 comments on commit 2338b34

Please sign in to comment.