Revert "feat: update switch to Advanced Editor warning (#259)" (#282)

This reverts commit 4a24d25f22.
This commit is contained in:
Raymond Zhou
2023-03-16 10:44:41 -07:00
committed by GitHub
parent fa14365d54
commit da9cb6054c
3 changed files with 10 additions and 26 deletions

View File

@@ -179,15 +179,10 @@ export const messages = {
defaultMessage: 'Switch to advanced editor',
description: 'button to switch to the advanced mode of the editor.',
},
ConfirmSwitchMessageOne: {
id: 'authoring.problemeditor.settings.switchtoadvancededitor.message.one',
defaultMessage: 'If you use the advanced editor, \r this problem will be converted to OLX and you will not be able to return to the simple editor.',
description: 'message to confirm that a user wants to use the advanced editor part 1',
},
ConfirmSwitchMessageTwo: {
id: 'authoring.problemeditor.settings.switchtoadvancededitor.message.two',
defaultMessage: 'Any changes made after the last Save action will be lost when converting to OLX.',
description: 'message to confirm that a user wants to use the advanced editor part 2',
ConfirmSwitchMessage: {
id: 'authoring.problemeditor.settings.switchtoadvancededitor.message',
defaultMessage: 'If you use the advanced editor, this problem will be converted to OLX and you will not be able to return to the simple editor.',
description: 'message to confirm that a user wants to use the advanced editor',
},
ConfirmSwitchMessageTitle: {
id: 'authoring.problemeditor.settings.switchtoadvancededitor.message',

View File

@@ -34,8 +34,7 @@ export const SwitchToAdvancedEditorCard = ({
)}
size="md"
>
<p><FormattedMessage {...messages.ConfirmSwitchMessageOne} /></p>
<p><FormattedMessage {...messages.ConfirmSwitchMessageTwo} /></p>
<FormattedMessage {...messages.ConfirmSwitchMessage} />
</BaseModal>
<Button
className="my-3 ml-2 py-0"

View File

@@ -31,21 +31,11 @@ exports[`SwitchToAdvancedEditorCard snapshot snapshot: SwitchToAdvancedEditorCar
/>
}
>
<p>
<FormattedMessage
defaultMessage="If you use the advanced editor,
this problem will be converted to OLX and you will not be able to return to the simple editor."
description="message to confirm that a user wants to use the advanced editor part 1"
id="authoring.problemeditor.settings.switchtoadvancededitor.message.one"
/>
</p>
<p>
<FormattedMessage
defaultMessage="Any changes made after the last Save action will be lost when converting to OLX."
description="message to confirm that a user wants to use the advanced editor part 2"
id="authoring.problemeditor.settings.switchtoadvancededitor.message.two"
/>
</p>
<FormattedMessage
defaultMessage="If you use the advanced editor, this problem will be converted to OLX and you will not be able to return to the simple editor."
description="message to confirm that a user wants to use the advanced editor"
id="authoring.problemeditor.settings.switchtoadvancededitor.message"
/>
</BaseModal>
<Button
className="my-3 ml-2 py-0"