2021-03-03 18:30:39 +01:00
|
|
|
// @flow
|
2020-11-12 18:38:28 +01:00
|
|
|
import * as ICONS from 'constants/icons';
|
|
|
|
import React from 'react';
|
|
|
|
import Button from 'component/button';
|
|
|
|
import Yrbl from 'component/yrbl';
|
2021-03-04 09:22:07 +01:00
|
|
|
import { SITE_HELP_EMAIL } from 'config';
|
2021-03-03 18:30:39 +01:00
|
|
|
|
2021-10-19 21:24:42 +02:00
|
|
|
type Props = {};
|
2021-03-03 18:30:39 +01:00
|
|
|
|
|
|
|
export default function SyncFatalError(props: Props) {
|
2021-03-15 20:47:48 +01:00
|
|
|
let downTime = false;
|
2021-03-16 22:21:47 +01:00
|
|
|
|
2020-11-12 18:38:28 +01:00
|
|
|
return (
|
|
|
|
<div className="main--empty">
|
|
|
|
<Yrbl
|
2021-03-03 18:30:39 +01:00
|
|
|
title={downTime ? __('Under maintenance...') : __('There is a bug... somewhere')}
|
2020-11-12 19:32:18 +01:00
|
|
|
subtitle={
|
2021-03-03 18:30:39 +01:00
|
|
|
<p>
|
|
|
|
{downTime
|
|
|
|
? __("We're currently upgrading or rebooting our services, please try refreshing in a few minutes.")
|
2021-03-04 09:22:07 +01:00
|
|
|
: __("Try refreshing to fix the issue. If that doesn't work, email %SITE_HELP_EMAIL% for support.", {
|
|
|
|
SITE_HELP_EMAIL,
|
|
|
|
})}
|
2021-03-03 18:30:39 +01:00
|
|
|
</p>
|
2020-11-12 19:32:18 +01:00
|
|
|
}
|
2020-11-12 18:38:28 +01:00
|
|
|
actions={
|
|
|
|
<div className="section__actions">
|
|
|
|
<Button
|
|
|
|
button="primary"
|
|
|
|
icon={ICONS.REFRESH}
|
|
|
|
label={__('Refresh')}
|
|
|
|
onClick={() => window.location.reload()}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|