diff --git a/src/navigation/Navigation.js b/src/navigation/Navigation.js index 38b5781..ad4fcf4 100644 --- a/src/navigation/Navigation.js +++ b/src/navigation/Navigation.js @@ -1,5 +1,8 @@ import PropTypes from 'prop-types' import React from 'react' + +//step 1 import the menu library +import { Menu, MenuItem } from '@dhis2/ui' // @TODO: Import the `Menu` and `MenuItem` components import { useNavigate, useMatch } from 'react-router-dom' @@ -17,7 +20,8 @@ const NavigationItem = ({ path, label }) => { const onClick = () => navigate(path) // @TODO: Use the `MenuItem` component instead of the `div` - return
{label}
+ //step 2 activate the menu bar + return } NavigationItem.propTypes = { @@ -27,7 +31,8 @@ NavigationItem.propTypes = { export const Navigation = () => ( // @TODO: Use the `Menu` components instead of the `div` -
+ //step 3 convert div int menu + ( label="Form" path="/form" /> -
+ ) diff --git a/src/views/Home.js b/src/views/Home.js index 76ef507..801915c 100644 --- a/src/views/Home.js +++ b/src/views/Home.js @@ -4,6 +4,6 @@ export const Home = () => (

Home

-

DHIS2 Web App Academy 2024

+

DHIS2 Web App Academy 2024 ( Mohamad change )

)