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 #2337 from botpress/f_compact-debugger
fix(debugger): a bit more compact nlu debugger
- Loading branch information
Showing
6 changed files
with
53 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
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
24 changes: 24 additions & 0 deletions
24
modules/extensions/src/views/lite/components/debugger/views/Language.tsx
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,24 @@ | ||
import { Colors, H5, HTMLTable } from '@blueprintjs/core' | ||
import React, { FC } from 'react' | ||
|
||
import style from '../style.scss' | ||
|
||
interface Props { | ||
detectedLanguage: string | ||
usedLanguage: string | ||
} | ||
|
||
export const Language: FC<Props> = props => ( | ||
<div className={style.subSection}> | ||
<div className={style.language}> | ||
<p> | ||
<strong>Detected language:</strong> | ||
<span>{props.detectedLanguage}</span> | ||
</p> | ||
<p> | ||
<strong>Used Language:</strong> | ||
<span>{props.usedLanguage}</span> | ||
</p> | ||
</div> | ||
</div> | ||
) |
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