-
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.
- Loading branch information
1 parent
943957e
commit eb74a4a
Showing
3 changed files
with
42 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useSelector } from 'react-redux'; | ||
|
||
import { Typography } from '@material-ui/core'; | ||
import { makeStyles } from '@material-ui/styles'; | ||
|
||
import { useTranslations } from '@openimis/fe-core'; | ||
import { MODULE_NAME } from '../constants'; | ||
|
||
export const useStyles = makeStyles((theme) => ({ | ||
page: theme.page, | ||
pageTitle: { | ||
fontWeight: 600, | ||
}, | ||
})); | ||
|
||
function DashboardPage() { | ||
const classes = useStyles(); | ||
const { formatMessageWithValues } = useTranslations(MODULE_NAME); | ||
const { economicUnit } = useSelector((state) => state.policyHolder); | ||
|
||
useEffect(() => { | ||
// eslint-disable-next-line no-console | ||
console.log('Refetch data when EU changes'); | ||
}, [economicUnit]); | ||
|
||
return ( | ||
<div className={classes.page}> | ||
<Typography variant="h5" className={classes.pageTitle}> | ||
{formatMessageWithValues('DashboardPage.title', { | ||
employer: 'Employer', | ||
})} | ||
</Typography> | ||
</div> | ||
); | ||
} | ||
|
||
export default DashboardPage; |
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