diff --git a/ui_src/src/components/customSelect/index.js b/ui_src/src/components/customSelect/index.js index dfedd337d..622004b9b 100644 --- a/ui_src/src/components/customSelect/index.js +++ b/ui_src/src/components/customSelect/index.js @@ -28,7 +28,7 @@ import pathDomains from '../../router'; const { Option } = Select; -const CustomSelect = ({ options, onChange, value, placeholder, type = 'schema', handleCreateNew }) => { +const CustomSelect = ({ options, onChange, value, placeholder, type = 'schema', handleCreateNew, showCreatedBy = true }) => { const history = useHistory(); const handleChange = (e) => { @@ -107,10 +107,12 @@ const CustomSelect = ({ options, onChange, value, placeholder, type = 'schema', />
{schema?.name || schema}
-- {type === 'schema' ? <>{schema?.type} • > : null} - {parsingDate(schema?.created_at)} -
+ {showCreatedBy && ++ {type === 'schema' ? <>{schema?.type} • > : null} + {parsingDate(schema?.created_at)} +
+ } > ); diff --git a/ui_src/src/components/sdkExample/index.js b/ui_src/src/components/sdkExample/index.js index 6e5893aed..21cc50c45 100644 --- a/ui_src/src/components/sdkExample/index.js +++ b/ui_src/src/components/sdkExample/index.js @@ -55,7 +55,6 @@ loader.config({ monaco }); const tabs = ['Producer', 'Consumer']; const tabsProtocol = ['Generate token', 'Produce data', 'Consume data']; const selectProtocolOption = ['SDK', 'REST']; -const ExpandIcon = ({ isActive }) =>Client generator
- + )}Package installation
{SDK_CODE_EXAMPLE[langSelected].installation}
-{`Code snippet for ${tabValue === 'Producer' ? 'producing' : 'consuming'} data`}
} -Parameters
- - - - -Code Output
- +Generated code
{SDK_CODE_EXAMPLE[langSelected].title}
{SDK_CODE_EXAMPLE[langSelected].desc} @@ -942,12 +934,13 @@ const SdkExample = ({ consumer, showTabs = true, stationName, username, connectiGenerate a token
Produce data
Consumem data