refactor: upgraded frontend-build version to v12

PR #322
This commit is contained in:
Bilal Qamar
2023-01-26 17:02:14 +05:00
committed by GitHub
parent 66afd4ddac
commit f8954ef870
63 changed files with 3009 additions and 3487 deletions

View File

@@ -5,23 +5,21 @@ import { getConfig } from '@edx/frontend-platform';
import messages from '../messages';
function SaveFormConnectionErrorAlert({ intl }) {
return (
<Alert variant="danger" data-testid="connectionErrorAlert">
<FormattedMessage
id="authoring.alert.save.error.connection"
defaultMessage="We encountered a technical error when applying changes. This might be a temporary issue, so please try again in a few minutes. If the problem persists, please go to the {supportLink} for help."
values={{
const SaveFormConnectionErrorAlert = ({ intl }) => (
<Alert variant="danger" data-testid="connectionErrorAlert">
<FormattedMessage
id="authoring.alert.save.error.connection"
defaultMessage="We encountered a technical error when applying changes. This might be a temporary issue, so please try again in a few minutes. If the problem persists, please go to the {supportLink} for help."
values={{
supportLink: (
<Alert.Link href={getConfig().SUPPORT_URL}>
{intl.formatMessage(messages.supportText)}
</Alert.Link>
),
}}
/>
</Alert>
/>
</Alert>
);
}
SaveFormConnectionErrorAlert.propTypes = {
intl: intlShape.isRequired,