Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { StudioFooterSlot } from '@edx/frontend-component-footer';
import { getConfig } from '@edx/frontend-platform';
import { useIntl } from '@edx/frontend-platform/i18n';
import {
Alert,
Container,
Form,
Button,
StatefulButton,
ActionRow,
} from '@openedx/paragon';
import { Warning } from '@openedx/paragon/icons';
import { Formik } from 'formik';
import { useNavigate } from 'react-router-dom';
import * as Yup from 'yup';
Expand Down Expand Up @@ -100,6 +102,10 @@ export const CreateLegacyLibrary = ({
title={intl.formatMessage(legacyMessages.createLibrary)}
/>
)}
<Alert variant="warning" icon={Warning}>
<Alert.Heading>{intl.formatMessage(legacyMessages.warningTitle)}</Alert.Heading>
{intl.formatMessage(legacyMessages.warningBody)}
</Alert>
<Formik
initialValues={{
displayName: '',
Expand Down
10 changes: 10 additions & 0 deletions src/library-authoring/create-legacy-library/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ const messages = defineMessages({
defaultMessage: 'Legacy library name',
description: 'Label for the title field when creating a legacy library.',
},
warningTitle: {
id: 'course-authoring.library-authoring.create-legacy-library.warning.title',
defaultMessage: 'You are creating content in a deprecated format',
description: 'Warning to discourage users from creating a new Legacy Library',
},
warningBody: {
id: 'course-authoring.library-authoring.create-legacy-library.warning.body',
defaultMessage: 'Legacy libraries will be unsupported in a future release. Any content you create in a legacy library will soon need to be migrated. Consider using the Libraries (Beta) feature instead.',
description: 'Warning to discourage users from creating a new Legacy Library',
},
createLibraryButton: {
id: 'course-authoring.library-authoring.create-legacy-library.form.create-library.button',
defaultMessage: 'Create legacy library',
Expand Down