Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9df602a

Browse files
fix: standardize class names for consistency in Codeblock component.
1 parent 9775a13 commit 9df602a

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

src/features/debugger/components/codeblock/codeblock.component.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ export const Codeblock = (props: CodeBlockProps) => {
3535
<div
3636
className={clsx(
3737
styles.container,
38-
props.type === "rawJson" && props.isError && styles.raw_json_error,
38+
props.type === "rawJson" && props.isError && styles.rawJsonError,
3939
)}
4040
>
4141
{title && (
42-
<div className={styles.header_container}>
43-
<div className={styles.title_container}>{title}</div>
42+
<div className={styles.headerContainer}>
43+
<div className={styles.titleContainer}>{title}</div>
4444
{HeaderRightComponent && <HeaderRightComponent />}
4545
</div>
4646
)}
47-
<div className={styles.scroll_container}>
47+
<div className={styles.scrollContainer}>
4848
<div
4949
className={clsx(
50-
styles.code_block,
50+
styles.codeBlock,
5151
(type === "token" || type === "json" || type === "rawJson") &&
52-
styles.vertical_scroll_container,
52+
styles.verticalScrollContainer,
5353
(type === "request" || type === "json") &&
54-
styles.horizontal_scroll_container,
54+
styles.horizontalScrollContainer,
5555
)}
5656
>
5757
{type === "request" && props.requestData ? (
@@ -85,7 +85,7 @@ export const Codeblock = (props: CodeBlockProps) => {
8585
<p className={styles.token}>{props.token}</p>
8686
) : null}
8787
{type === "rawJson" ? (
88-
<pre className={clsx(styles.json, styles.raw_json)}>
88+
<pre className={clsx(styles.json, styles.rawJson)}>
8989
{props.rawJson}
9090
</pre>
9191
) : null}

src/features/debugger/components/codeblock/codeblock.module.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,14 @@
8686
word-break: break-word;
8787
}
8888

89-
.raw_json {
89+
.rawJson {
9090
color: var(--color_fg_neutral)
9191
}
92-
.raw_json_error {
92+
93+
.rawJsonError {
9394
background: var(--color_bg_state_error);
9495
}
9596

96-
.json_line {
97+
.jsonLine {
9798
color: #928eff;
9899
}

0 commit comments

Comments
 (0)