-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It implements team members list
- Loading branch information
Showing
4 changed files
with
149 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Flex, FlexProps, Text } from '@chakra-ui/react' | ||
import { WarningIcon } from '@chakra-ui/icons' | ||
import { useTranslation } from 'react-i18next' | ||
|
||
const ErrorComponent = ({ error, ...props }: { error: Error } & FlexProps) => { | ||
const { t } = useTranslation() | ||
|
||
return ( | ||
<Flex | ||
flexDirection='column' | ||
gap={4} | ||
alignItems='center' | ||
mt={12} | ||
mb={44} | ||
px={{ | ||
base: 10, | ||
sm: 14, | ||
}} | ||
{...props} | ||
> | ||
<WarningIcon /> | ||
<Text>{t('error.loading_page')}</Text> | ||
<Text>{error.toString()}</Text> | ||
</Flex> | ||
) | ||
} | ||
|
||
export default ErrorComponent |
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
c34f7c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://66fc0a051ba9904cfc489f5a--vocdoni-app-dev.netlify.app
c34f7c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://66fc0a06537e8d528cf92a9b--vocdoni-app-stg.netlify.app