Skip to content

Commit

Permalink
wip client
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Mar 3, 2025
1 parent 839c573 commit f132a88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/src/components/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { LeanMonaco, LeanMonacoEditor, LeanMonacoOptions } from 'lean4monaco'
import '../../css/editor.css'
import { useSelector } from 'react-redux';
import { selectTypewriterMode } from '../../state/progress';
import { Typewriter } from './typewriter';
import { Typewriter } from './Typewriter';
import { GoalTabs } from './goal_tabs';
import { GameInfoview } from './tmp';

Expand All @@ -24,7 +24,7 @@ export function Editor() {
const editorRef = useRef<HTMLDivElement>(null)
const infoviewRef = useRef<HTMLDivElement>(null)
const gameInfoviewRef = useRef<HTMLDivElement>(null)
const [editor, setEditor] = useState<monaco.editor.IStandaloneCodeEditor>()
const [editor, setEditor] = useState<monaco.editor.IStandaloneCodeEditor|undefined>(undefined)
const [leanMonaco, setLeanMonaco] = useState<LeanMonaco>()
const [code, setCode] = useState<string>('')

Expand Down
4 changes: 2 additions & 2 deletions client/src/components/editor/goal.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import { InteractiveGoal, InteractiveHypothesisBundle } from '../Defs';
import { InteractiveGoal, InteractiveHypothesisBundle } from './Defs';
import { useTranslation } from 'react-i18next';
import { InteractiveCode, InteractiveHypothesisBundle_nonAnonymousNames, LocationsContext, SubexprInfo, TaggedText } from '@leanprover/infoview';
import { SelectableLocation } from '../../../../../node_modules/lean4-infoview/src/infoview/goalLocation';
// import { SelectableLocation } from '../../../../../node_modules/lean4-infoview/src/infoview/goalLocation';

/** Returns true if `h` is inaccessible according to Lean's default name rendering. */
function isInaccessibleName(h: string): boolean {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/editor/tmp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { DidCloseTextDocumentParams, DocumentUri, Location } from 'vscode-l
import '@vscode/codicons/dist/codicon.css'
import '@vscode/codicons/dist/codicon.ttf'
import 'tachyons/css/tachyons.css'
import './index.css'
// import './index.css'

import {
defaultInfoviewConfig,
Expand Down

0 comments on commit f132a88

Please sign in to comment.