(viewer) Show error message for incompatible browsers

This commit is contained in:
Baptiste Arnaud
2023-02-26 18:23:10 +01:00
parent 5dd87554c3
commit edf0ecd712
9 changed files with 45 additions and 21 deletions

View File

@@ -10,6 +10,7 @@ export const ErrorPage = ({ error }: { error: Error }) => {
justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column',
padding: '0 1rem',
}}
>
{isEmpty(getViewerUrl()) ? (
@@ -26,7 +27,7 @@ export const ErrorPage = ({ error }: { error: Error }) => {
</h2>
</>
) : (
<p style={{ fontSize: '24px' }}>{error.message}</p>
<p style={{ fontSize: '24px', textAlign: 'center' }}>{error.message}</p>
)}
</div>
)