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

Commit

Permalink
chore: fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed Feb 28, 2024
1 parent a436664 commit 1898c11
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/botPage/view/log-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ const LogTableContent = () => {
</div>
);

rowRenderer.propTypes = {
rowData: PropTypes.shape({
type: PropTypes.string,
}),
columns: PropTypes.shape({
props: PropTypes.shape({
style: PropTypes.object,
className: PropTypes.string,
role: PropTypes.string,
title: PropTypes.string,
}),
key: PropTypes.string,
}),
};

return (
<span id='logPanel' className='logpanel'>
<div id='logtable' className='logTable-scroll logtable'>
Expand All @@ -130,9 +145,9 @@ const LogTableContent = () => {
rowRenderer={rowRenderer}
deferredMeasurementCache={cache}
>
{columns.map(({ label, dataKey }, index) => (
{columns.map(({ label, dataKey }) => (
<Column
key={index}
key={label + dataKey}
headerRenderer={headerRenderer}
width={widths[dataKey] * total_width}
label={label}
Expand Down
1 change: 1 addition & 0 deletions src/components/Dialogs/TradingView.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function TradingViewComponent() {
id='iframe'
style={{ width: '100%', height: '100%', border: 'none' }}
src={config.trading_view_chart.url}
title={translate('Trading View')}
/>
</div>
);
Expand Down
2 changes: 2 additions & 0 deletions src/components/Draggable/Draggable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ const Draggable = ({
<div
id='draggable-content__header'
className='draggable-content__header'
role='button'
onMouseDown={e => handleMouseDown(e, MOVE)}
onKeyDown={e => handleMouseDown(e, MOVE)}
>
<div className='draggable-content__header-title'>{header}</div>
<div>
Expand Down

0 comments on commit 1898c11

Please sign in to comment.