mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 13:21:37 +02:00
added Legacy keyword in front of theme names
GitOrigin-RevId: 67153578ba1cdfcc2df45caf4dee185644ec1021
This commit is contained in:
@@ -30,7 +30,7 @@ export default function SettingsEditorTheme() {
|
||||
const legacyEditorThemeOptions: Array<Option> =
|
||||
legacyEditorThemes?.map(theme => ({
|
||||
value: theme,
|
||||
label: theme.replace(/_/g, ' '),
|
||||
label: theme.replace(/_/g, ' ') + ' (Legacy)',
|
||||
})) ?? []
|
||||
|
||||
return [...editorThemeOptions, dividerOption, ...legacyEditorThemeOptions]
|
||||
|
||||
@@ -30,7 +30,9 @@ describe('<SettingsEditorTheme />', function () {
|
||||
}
|
||||
|
||||
for (const theme of legacyEditorThemes) {
|
||||
const option = within(select).getByText(theme.replace(/_/g, ' '))
|
||||
const option = within(select).getByText(
|
||||
theme.replace(/_/g, ' ') + ' (Legacy)'
|
||||
)
|
||||
expect(option.getAttribute('value')).to.equal(theme)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user