-
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.
fix: Merge conflicts with master resolved
- Loading branch information
Showing
11 changed files
with
268 additions
and
78 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
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
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,33 @@ | ||
import React, { useState } from 'react'; | ||
import i18n from '@dhis2/d2-i18n'; | ||
import { WidgetCollapsible } from '../../components/WidgetCollapsible'; | ||
import { Warning } from '../Icons'; | ||
|
||
export const CustomReferencesError = () => { | ||
const [open, setOpen] = useState(true); | ||
return ( | ||
<div style={{ | ||
width: '100vw', | ||
margin: 0, | ||
padding: 0, | ||
}} | ||
> | ||
<WidgetCollapsible | ||
header={i18n.t('Growth Chart')} | ||
borderless={false} | ||
open={open} | ||
onOpen={() => setOpen(true)} | ||
onClose={() => setOpen(false)} | ||
> | ||
<div className='flex justify-center'> | ||
<Warning className='w-12 h-12' /> | ||
<p className='flex p-5 pt-2'> | ||
{i18n.t('There was an error fetching the custom references for the growth chart.')} | ||
<br /> | ||
{i18n.t('Please check the configuration in Datastore Management and try again.')} | ||
</p> | ||
</div> | ||
</WidgetCollapsible> | ||
</div> | ||
); | ||
}; |
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
Oops, something went wrong.