({
children,
appMount
}: AppMountNotifierProps)
| 15 | bindActionCreators({ appMount }, dispatch); |
| 16 | |
| 17 | const AppMountNotifier = ({ |
| 18 | children, |
| 19 | appMount |
| 20 | }: AppMountNotifierProps): JSX.Element => { |
| 21 | useEffect(() => { |
| 22 | appMount(); |
| 23 | // eslint-disable-next-line react-hooks/exhaustive-deps |
| 24 | }, []); |
| 25 | |
| 26 | const { i18n } = useTranslation(); |
| 27 | |
| 28 | return ( |
| 29 | <> |
| 30 | <Helmet htmlAttributes={{ lang: i18n.language }} /> |
| 31 | {children} |
| 32 | </> |
| 33 | ); |
| 34 | }; |
| 35 | |
| 36 | AppMountNotifier.displayName = 'AppMountNotifier'; |
| 37 |
nothing calls this directly
no test coverage detected