forked from binary-com/deriv-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
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 binary-com#269 from utkarsha-deriv/utkarsha/DERA-3…
…86/Fix-request-schema-forget-api-call
- Loading branch information
Showing
13 changed files
with
424 additions
and
7 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
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
26 changes: 26 additions & 0 deletions
26
src/features/Apiexplorer/Schema/RecursiveContent/StreamTypesObject/StreamTypesBody.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,26 @@ | ||
import React from 'react'; | ||
import { TEnumStreamType } from '@site/src/types'; | ||
import styles from '../../Schema.module.scss'; | ||
|
||
type TStreamTypesBody = { | ||
type: string; | ||
_enum: TEnumStreamType; | ||
}; | ||
|
||
const StreamTypesBody = ({ type, _enum }: TStreamTypesBody) => { | ||
return ( | ||
<div className={styles.streamTypesBody}> | ||
<div className={styles.streamTypesObject}> | ||
<span className={styles.enumLabel}>enum</span> | ||
<span className={`${styles.enumType} ${styles.string}`}>{type}</span> | ||
{_enum.map((enum_name: string, i: number) => ( | ||
<div className={`${styles.schemaCode} ${styles.schemaEnums}`} key={i}> | ||
{enum_name} | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default StreamTypesBody; |
20 changes: 20 additions & 0 deletions
20
src/features/Apiexplorer/Schema/RecursiveContent/StreamTypesObject/StreamTypesHeader.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,20 @@ | ||
import React from 'react'; | ||
import SchemaTitle from '../../SchemaTitle'; | ||
import styles from '../../Schema.module.scss'; | ||
|
||
type TStreamTypesHeader = { | ||
description: string; | ||
}; | ||
|
||
const StreamTypesHeader = ({ description }: TStreamTypesHeader) => { | ||
return ( | ||
<div className={styles.streamTypesHeader}> | ||
<SchemaTitle className={styles.streamTypesTitle}>stream_types</SchemaTitle> | ||
<div className={styles.streamTypesDescription}> | ||
<div>{description}</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default StreamTypesHeader; |
Oops, something went wrong.