Skip to content

Commit c83f650

Browse files
[dashboard] Add Theia deprecaton warning
1 parent a3c2528 commit c83f650

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/dashboard/src/settings/Preferences.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ import theia from '../images/theia-gray.svg';
1212
import vscode from '../images/vscode.svg';
1313
import { PageWithSubMenu } from "../components/PageWithSubMenu";
1414
import settingsMenu from "./settings-menu";
15+
import AlertBox from "../components/AlertBox";
1516

1617
type Theme = 'light' | 'dark' | 'system';
1718

1819
export default function Preferences() {
1920
const { user } = useContext(UserContext);
20-
const [ defaultIde, setDefaultIde ] = useState<string>(user?.additionalData?.ideSettings?.defaultIde || 'theia');
21+
const [ defaultIde, setDefaultIde ] = useState<string>(user?.additionalData?.ideSettings?.defaultIde || 'code');
2122
const actuallySetDefaultIde = async (value: string) => {
2223
const additionalData = user?.additionalData || {};
2324
const settings = additionalData.ideSettings || {};
@@ -46,6 +47,9 @@ export default function Preferences() {
4647
<PageWithSubMenu subMenu={settingsMenu} title='Preferences' subtitle='Configure user preferences.'>
4748
<h3>Default IDE</h3>
4849
<p className="text-base text-gray-500">Choose which IDE you want to use.</p>
50+
<AlertBox className="mt-3 mb-4 w-3/4">
51+
We're deprecating the Theia editor. You can still switch back to Theia for the next few weeks but the preference will be removed by the end of August 2021.
52+
</AlertBox>
4953
<div className="mt-4 space-x-4 flex">
5054
<SelectableCard className="w-36 h-40" title="VS Code" selected={defaultIde === 'code'} onClick={() => actuallySetDefaultIde('code')}>
5155
<div className="flex-grow flex justify-center items-center">

0 commit comments

Comments
 (0)