Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsha-deriv committed Dec 8, 2023
1 parent 753b9f1 commit 1c8bf3b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const RecursiveProperties = ({ is_open, properties, value, jsonSchema }: TRecurs
key_value={key}
properties={properties}
jsonSchema={jsonSchema}
is_stream_types={true}
is_stream_types
/>
) : (
<SchemaObjectContent key={key} key_value={key} properties={properties} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ const SchemaBodyHeader = ({

{is_stream_types && (
<div className={styles.schemaObjectContent}>
<span className={styles.enumLabel}>{'one of'}</span>
<button onClick={() => setIsOpenObject(!is_open_object)}>{'stream_types'}</button>
<span className={`${styles.enumType} ${styles.array}`}>{'array'}</span>
<span className={styles.enumLabel}>one of</span>
<button onClick={() => setIsOpenObject(!is_open_object)}>stream_types</button>
<span className={`${styles.enumType} ${styles.array}`}>array</span>
</div>
)}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type TStreamTypesHeader = {
const StreamTypesHeader = ({ description }: TStreamTypesHeader) => {
return (
<div className={styles.streamTypesHeader}>
<SchemaTitle className={styles.streamTypesTitle}>{'stream_types'}</SchemaTitle>
<SchemaTitle className={styles.streamTypesTitle}>stream_types</SchemaTitle>
<div className={styles.streamTypesDescription}>
<div>{description}</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/features/Apiexplorer/Schema/Schema.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
&:hover {
> .sourceButtonMain {
opacity: 1;
margin: 10px;
margin: rem(1);
}
}

Expand Down

0 comments on commit 1c8bf3b

Please sign in to comment.