-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #455 from ejgallego/441-error-msg
[code] ui: Add divider between errors and goals (#441)
- Loading branch information
Showing
5 changed files
with
49 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { PpString } from "../../lib/types"; | ||
import { CoqPp } from "./CoqPp"; | ||
import { Details } from "./Details"; | ||
|
||
export type ErrorBrowserParams = { error?: PpString }; | ||
export type ErrorBrowserParams = { error: PpString }; | ||
|
||
export function ErrorBrowser({ error }: ErrorBrowserParams) { | ||
if (!error) return null; | ||
|
||
return ( | ||
<Details summary={"Error Browser"}> | ||
<CoqPp content={error} inline={true} /> | ||
</Details> | ||
<> | ||
<header>Errors:</header> | ||
<CoqPp content={error} inline={true} />; | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.error-browser { | ||
flex: 1 1 0%; | ||
} | ||
|
||
.info-panel-container { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
} | ||
|
||
.info-panel { | ||
overflow: auto; | ||
} |