Skip to content

Commit

Permalink
Merge pull request microsoft#4050 from microsoft/hediet/b/confident-kite
Browse files Browse the repository at this point in the history
latest -> latest stable (versionNumber)
  • Loading branch information
hediet authored Jun 29, 2023
2 parents 84d1bed + dc5c245 commit 34f6c10
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions website/src/website/pages/playground/PlaygroundPageContent.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { autorun } from "mobx";
import { observer } from "mobx-react";
import * as React from "react";
import { ButtonGroup, FormCheck } from "react-bootstrap";
import { getLoadedMonaco } from "../../../monaco-loader";
import { IPlaygroundProject, IPreviewState } from "../../../shared";
import { Page } from "../../components/Page";
import { Select } from "../../components/Select";
import { Button, Col, Row, Stack } from "../../components/bootstrap";
import {
MonacoEditor,
MonacoEditorHeight,
} from "../../components/monaco/MonacoEditor";
import { withLoadedMonaco } from "../../components/monaco/MonacoLoader";
import { monacoEditorVersion } from "../../monacoEditorVersion";
import { hotComponent } from "../../utils/hotComponent";
import { IReference, ref } from "../../utils/ref";
import { getNpmVersionsSync } from "./getNpmVersionsSync";
import { getPlaygroundExamples, PlaygroundExample } from "./playgroundExamples";
import { PlaygroundModel } from "./PlaygroundModel";
import { Preview } from "./Preview";
import { SettingsDialog } from "./SettingsDialog";
import { Button, Col, Row, Stack } from "../../components/bootstrap";
import { ButtonGroup, FormCheck } from "react-bootstrap";
import { getNpmVersionsSync } from "./getNpmVersionsSync";
import { PlaygroundExample, getPlaygroundExamples } from "./playgroundExamples";

@hotComponent(module)
@observer
Expand Down Expand Up @@ -258,13 +258,15 @@ export class VersionSelector extends React.Component<{
<Select
values={versions}
getLabel={(i) =>
`${i}${
{
["undefined"]: "",
["true"]: " ✓",
["false"]: " ✗",
}["" + model.bisectModel.getState(i)]
}`
i === latestValue
? `latest stable (${monacoEditorVersion})`
: `${i}${
{
["undefined"]: "",
["true"]: " ✓",
["false"]: " ✗",
}["" + model.bisectModel.getState(i)]
}`
}
value={{
get() {
Expand Down

0 comments on commit 34f6c10

Please sign in to comment.