add comment - explain conditional statusBar

This commit is contained in:
Panagiotis 2021-08-08 21:00:15 +03:00
parent a53886a630
commit 1c7a89b2e4

View file

@ -1852,6 +1852,8 @@ export default class RoomView extends React.Component<IProps, IState> {
"mx_RoomView_statusArea_expanded": isStatusAreaExpanded,
});
// if statusBar does not exist then statusBarArea is blank and takes up unnecessary space on the screen
// show statusBarArea only if statusBar is present
const statusBarArea = statusBar && <div className={statusBarAreaClass}>
<div className="mx_RoomView_statusAreaBox">
<div className="mx_RoomView_statusAreaBox_line" />