This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
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 #269 from utkarsha-deriv/utkarsha/DERA-386/Fix-req…
…uest-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.
6e2523e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
deriv-api-docs – ./
deriv-api-docs-git-master.binary.sx
deriv-api-docs.binary.sx